-
Notifications
You must be signed in to change notification settings - Fork 34
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
Relative path in node_modules #161
Comments
I think I may be hitting this same issue when trying to
Clearly it's using a wrong path as a base i.e. the one where I'm importing the file instead of the path under node_modules where the imported css resides. Any pointers on how to fix this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I try to compose from a module that's in
node_modules
and that happens to compose from a relative path module, it croaks:{ Error: ENOENT: no such file or directory, open '/Users/longho/Work/css-modules-loader-core/test/test-cases/compose-node-module/cool-styles/bar.css'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/longho/Work/css-modules-loader-core/test/test-cases/compose-node-module/cool-styles/bar.css' }
I've put the example in my fork: https://github.com/longlho/css-modules-loader-core/blob/master/node_modules/cool-styles/foo.css#L6
The text was updated successfully, but these errors were encountered: