Skip to content

sass-loader outdated #840

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

Closed
pavrip opened this issue Sep 19, 2020 · 5 comments
Closed

sass-loader outdated #840

pavrip opened this issue Sep 19, 2020 · 5 comments

Comments

@pavrip
Copy link

pavrip commented Sep 19, 2020

Hi I am desperately trying to update the webpack-encore bundle inside a Symfony application but its not working,

I have tried npm update sass-loader,
npm update,
composer update symphony/webpack-encore-bundle,

As well as manually changing the version in the package.json file and running composer.update,

I still get this message:

WARNING Webpack Encore requires version ^9.0.1 of sass-loader, but your version (8.0.2) is too old. The related feature will probably not work correctly.
WARNING Webpack Encore requires version ^9.0.1 of sass-loader, but your version (8.0.2) is too old. The related feature will probably not work correctly.

And no its not working correctly, I have to keep deleting the browser cache and quitting the browser everytime I make a change, its not possible to really work with this,

How could this be updated properly?

Thanks

@Kocal
Copy link
Member

Kocal commented Sep 19, 2020

Hi, your issue is not related to the bundle but to how to manage your node.js dependencies.

Since you probably have a sass-loader: ^8.0.2 version constraint, npm update will only update sass-loader to the latest version matching your constraint, I guess. It won't upgrade to a new major version.

You can run npm install --save-dev @symfony/webpack-encore sass-loader@^9.0.0 it should do the job.

@pavrip
Copy link
Author

pavrip commented Sep 20, 2020

Hello, thank you for that,
But it says that is not in the npm registry, I tried literally ever other way to upgrade it, maybe I will just reinstall the whole thing, and keep my configuration files

@Kocal
Copy link
Member

Kocal commented Sep 20, 2020

That's weird because version 9.0.0 (and higher) are present on npm registry: https://www.npmjs.com/package/sass-loader/v/9.0.0

Are you behing a proxy or something similar?

@ghost
Copy link

ghost commented Sep 24, 2020

@pavrip try this :
npm install --save-dev @symfony/webpack-encore sass-loader@^9.0.0

@Kocal
You just made a mistake : webapck instead of webpack ;)

For me it works fine

@Kocal
Copy link
Member

Kocal commented May 23, 2021

I think this can be closed since it's now possible to use sass-loader 9 (#799), 10 (#865) and 11 (#928).

@stof stof closed this as completed May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants