Can't resolve '../../node_modules/bootstrap/scss/mixins/data:image/svg+xml...
See original GitHub issueWhat version of Next.js are you using?
12.0.3
What version of Node.js are you using?
14.18.1
What browser are you using?
Chrome
What operating system are you using?
MacOS
How are you deploying your application?
Kubernetes
Describe the Bug
When importing Bootstrap on 12.3.0 (problem started occurring in 12.3.0-canary.2, 12.3.0-canary.1 is fine), the following error appears:
error - ./src/styles/main.scss:5:0
Module not found: Can't resolve '../../node_modules/bootstrap/scss/mixins/data:image/svg+xml,<svg xmlns='http:/www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path fill=''
Expected Behavior
Bug introduced in 12.3.0-canary.2
To Reproduce
Import main.scss
in your App.js:
@import '~bootstrap/scss/functions';
Issue Analytics
- State:
- Created 2 years ago
- Reactions:12
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve 'fs' in - Stack Overflow
The error is because of angular-cli does not support modules in node like "fs" and "path". (Issue). Add the following to the root...
Read more >Can't resolve 'fs' when bundle with webpack #447 - GitHub
to webpack config file and the error is gone. Not sure how it works, It seems like webpack did some thing with fs...
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >Module not found | Can not resolve module in react - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Can't resolve 'fs' in '/home/username/project-directory/src'
Can't resolve 'fs' in '/home/username/project-directory/src' ? I've got a React/Electron app, and can't seem to access Node fs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed by #31134 (merged).
EDIT: Update your Next.js version to 12.0.4-canary.1 or above.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.