Skip to content

Can't import css from node_modules #8

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

Closed
fracmak opened this issue Dec 8, 2016 · 3 comments
Closed

Can't import css from node_modules #8

fracmak opened this issue Dec 8, 2016 · 3 comments
Labels

Comments

@fracmak
Copy link

fracmak commented Dec 8, 2016

when doing something like import 'some-module/my.css'; babel plugin crashes with a message saying it can't find __dirname/some-module/my.css when it should be looking in ~/node_modules/some-module/my.css`

This is functionality that worked using ReactCSSModules

@gajus gajus added the bug label Dec 18, 2016
@gajus
Copy link
Owner

gajus commented Dec 18, 2016

Can you have a look into version v1.1.1 and see if you can replicate the issue?

If you can, can you please raise a PR with a fix or a failing test case?

@jmcclell
Copy link

@gajus I'm having the same problem. Here is a stripped down project exhibiting the symptom:
https://github.com/jmcclell/babel-plugin-react-css-modules-testcase

@gajus gajus closed this as completed in ad47629 Jan 6, 2017
@gajus
Copy link
Owner

gajus commented Jan 6, 2017

Thank you @jmcclell for reproducing the issue.

It has been fixed now.

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

No branches or pull requests

3 participants