Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styles not being update when using SCSS partials on different HTML page #4570

Closed
ajayns opened this issue May 6, 2020 · 3 comments
Closed
Labels
❔ Question Stale Inactive issues

Comments

@ajayns
Copy link

ajayns commented May 6, 2020

🐛 bug report

Changes made to styles not updated on the dev server unless the site is manually reloaded.

Steps to reproduce:

  1. Have 2 HTML files sharing the same stylesheet. (here index.njk, about.njk)
  2. Use SCSS partials in the stylesheet.
  3. Update one of the style partials while dev server running on localhost:1234/about and save.

Similar to #1931

🎛 Configuration (.babelrc, package.json, cli command)

No babel config,
I use sass + postcss and parcel-plugin-nunjucks.

package.json

{
  "devDependencies": {
    "@babel/core": "7.2.0",
    "autoprefixer": "^9.7.6",
    "nunjucks": "^3.2.1",
    "parcel-bundler": "^1.12.4",
    "parcel-plugin-nunjucks": "^2.2.0",
    "postcss-modules": "^2.0.0",
    "sass": "^1.26.5"
  }
}

🤔 Expected Behavior

As I make changes to any SCSS files, regardless of the page I'm in, it should trigger a refresh and style update.

😯 Current Behavior

No changes to style on the page.

In the console, this pops up as well:

Uncaught Error: 
Cannot find module '../node_modules/parcel-bundler/src/builtins/css-loader.js'

Which seems similar to #2936 but I can't see a fix there either.

🌍 Your Environment

Software Version(s)
Parcel 1.12.4
Node 12.16.1
Yarn 1.22.4
Operating System macOS 10.14.6
@ajayns
Copy link
Author

ajayns commented May 22, 2020

Any ideas on this @mischnic ?

@mischnic
Copy link
Member

Does seem like the same issue as #2936.

(This is probably #2340 in disguise (because css-loader should be part of multiple bundles but Parcel 1 didn't allow that))

I don't have any workarounds apart from these

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ Question Stale Inactive issues
Projects
None yet
Development

No branches or pull requests

2 participants