Skip to content
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

cannot find css class from any package at node_modules #29

Open
AtarisMio opened this issue Nov 12, 2017 · 2 comments
Open

cannot find css class from any package at node_modules #29

AtarisMio opened this issue Nov 12, 2017 · 2 comments

Comments

@AtarisMio
Copy link

when i import a style from a package at node_modules or some others dir not use './xxxx.css', it tell me "Class 'xxx' not found (css-modules/no-undef-class)"

i think the problem is caused by this code.
https://github.com/atfzl/eslint-plugin-css-modules/blob/master/lib/rules/no-undef-class.js#L66

may there should have a configure of base directory to find the css files

@nikitaMe1nikov
Copy link

I have the same problem if I use absolute-relative paths 'components/Button/Button.css'.

@kangax
Copy link
Contributor

kangax commented Aug 28, 2018

@nikitaMe1nikov PR for absolute imports support — #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants