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

Module build failed #3

Open
dudiharush opened this issue Mar 22, 2020 · 2 comments
Open

Module build failed #3

dudiharush opened this issue Mar 22, 2020 · 2 comments

Comments

@dudiharush
Copy link

After following your installation instructions, I got this error while building my react app:
ERROR in ./src/index.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@welldone-software/babel-plugin-add-test-id' from '/home/user/webapp'

Shouldn't it look for it the node_modules folder?

@irruputuncu
Copy link

I stumbled over the same problem, and the issue seems to be that the plugin name in the docs is wrong - it should be @welldone-software/babel-plugin-react-add-test-id (with react). There is also already a pull request for that: https://github.com/welldone-software/babel-plugin-react-add-test-id/pull/6/files

@dudiharush
Copy link
Author

I see... Thanks @irruputuncu for pointing this out.

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