Skip to content

npm installing from repo with #mainΒ #2469

@Dorian-Grim

Description

@Dorian-Grim

Prerequisites

Describe the issue

I am banging my head on the wall here, I can't figure this out. I am missing something but can't figure out what. So here's how it starts.

The repo has been update with #2223. So I want to benefit asap from the new code and I go ahead and do an npm install "https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap.git#main". Cli outputs it has updated my boosted package. When I npm start my app (react) and quickly change the <html> attribute data-bs-theme to dark, I see that it doesn't use the theme from the preview page

On my dev env I start investigating:

  1. inspect sources in node_modules
    when I go here, I see the changes being pulled from the repo. More exactly, I quickly check
    // Boosted mod: no --#{$prefix}alert-color
    and see if the line corresponds with the repo
  2. inspect sources in browser
    here however when I go to inspect, sources, open .\node_modules\boosted\scss\_alert.scss
    image

I say, ok, it's a cache problem. I start and remove every cache I can think of possible. From the browser and from npm. Whatever I do, browser code (line 81) is still not updated to #2223 code

At this point I'm thinking, ok, my env is messed up. I go make a fresh, vm, install windows on it and then:

  1. Install npm
  2. I run cd test-folder then run npx create-react-app my-app
  3. install boosted with https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap.git#main
  4. I go into my-app/node_modules/boosted/scss/_alert.scss line 81 to check the Dark modeΒ #2223 mod. It is correct, desired code
  5. I open my-app/src/index.js
  6. I add import "boosted/dist/css/boosted.min.css"
  7. I run npm start
    app starts and opens
  8. I inspect in browser and go to sources .\node_modules\boosted\scss\_alert.scss
  9. Line 81 is not using new code πŸ€¦β€β™‚οΈ

I have literally no idea why, how, where it's fetching the old code from.

Please help with anything πŸ™

Reduced test cases

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Boosted are you using?

5.3.2#main

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions