-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Module not found: Can't resolve './alert' in '/mydirectory/node_modules/bootstrap/scss' #567
Comments
@adrian2020my please provide minimum reproducible test repo, we can't help without structure and version bootstrap, thanks |
Thanks for the reply. @evilebottnawi Here is the repo: https://github.com/adrian2020my/webpackBootstrap |
@adrian2020my can you decrease |
I lowered the version of sass-loader to 6.0.7 but it still doesn't compile. @evilebottnawi |
@adrian2020my |
@evilebottnawi Sorry, it works. I managed to compile it, had to remove the previous version first before reinstalling the older version of sass-loader. May I know why it doesn't compile in the latest version? |
@adrian2020my #556 on next week i will try to find time on fix it, just regression |
Can we close issue? |
@evilebottnawi sorry for my previous comment, it still doesn't work. When I tested the working one, I accidentally removed the import "~bootstrap/scss/bootstrap"; After I tried it, still doesn't compile. |
@evilebottnawi Currently, I'm back to square one. ./node_modules/bootstrap/scss/bootstrap.scss |
@evilebottnawi Yes, that comment about it working was false. In that particular part, I accidentally removed the import "~bootstrap/scss/bootstrap"; so it worked.(was doing other stuff, so had to make it work) My problem was that when I do the import, it doesn't compile. So sorry for that. |
After struggling with this issue the entire day, I managed to go around my problem by following the instructions in facebook/create-react-app: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc . I was not able to fully resolve my issue in regards to the importing the bootstrap module. Maybe facebook has configured webpack to the point where it's hard to directly import sass file from node_modules/ to the src directory. |
This must be a duplicate of #566 |
@jsg2021 yep, duplicate thanks! |
1 .import own scss langage not css langage so app.css should be app.scss |
Good! It work also for me! :) |
I use @import "~bootstrap/scss/bootstrap"; in my custom.scss but when webpack tries to compile, the following error appears:
Please kindly advise on resolving this issue as I'm not able to customise my css using mixins from bootstrap.
My webpack.config file is as below:
webpack.config.txt
The text was updated successfully, but these errors were encountered: