Skip to content

Cannot find module 'babel-plugin-react-css-modules' #3

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
silkfire opened this issue Oct 24, 2020 · 4 comments
Closed

Cannot find module 'babel-plugin-react-css-modules' #3

silkfire opened this issue Oct 24, 2020 · 4 comments

Comments

@silkfire
Copy link

When building my project using your fork, I'm getting this error:

Module build failed (from ../node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-plugin-react-css-modules' from '<path-to-project-directory>'

I removed the original babel-plugin-react-css-modules npm module and replaced it with yours. Am I missing something?

@birdofpreyru
Copy link
Owner

Yes, your should update its name in your Babel config to @dr.pogodin/babel-plugin-react-css-modules (can be shortcut as @dr.pogodin/react-css-modules)

@silkfire
Copy link
Author

silkfire commented Oct 24, 2020

@birdofpreyru Thanks, that resolved the issue. Perhaps it'd be worth mentioning this detail in the documentation?

@birdofpreyru
Copy link
Owner

It is mentioned somewhere, but I guess indeed I should put it into the very top of README. I'll do :)

@silkfire
Copy link
Author

YES! Programmers are lazy by nature you know :)

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

No branches or pull requests

2 participants