Importing styles from node_modules is showing no file or directory error
Hi,
I tried to follow the instructions from the wiki to import styles from node_modules. But I keep getting the following error message.
Module build failed: Error: ENOENT: no such file or directory, open '/Users/johnisaac/code/webpacker_sample/app/javascript/styles/~boostrap/dist/bootstrap.css'
Above line is in a hello_react.sass file with the following content
@import '~boostrap/dist/bootstrap.css'
hello_react.sass file is imported in another hello_react.js file like
import '../styles/hello_react'
Any help is appreciated.
@johnisaac Please don't use extension it's already added in the extensions list.
@import '~boostrap/dist/bootstrap
@gauravtiwari When I tried without the extension, it is showing a similar error
File to import not found or unreadable: ~boostrap/dist/bootstrap.
There is a typo - ~bootstrap/dist/bootstrap
I did not include . at the end in the source code but it is showing up in the log.
Ah, I see you what you mean. Thanks!