-
Notifications
You must be signed in to change notification settings - Fork 72
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
Using the src directory instead of the lib directory #100
Comments
are you using rollup? It's probably following this: https://github.com/enkidevs/react-search-input/blob/master/package.json#L6 |
I don't believe i'm using rollup. But that line is clearly what is causing my issue. My solution for now is just to include node_modules in my webpack babel loader |
This happens for me when installing in conjunction with the latest react boilerplate as well. I get the following error when trying to run webpack:
I fixed this for the time being by removing "src" from the "files" field in the module's (nb: you can use my fork of the repo if you need it before this get fixed in the NPM package) |
My project seems to be pulling the code from the src directory, which is es6. This is causing the following error:
Module parse failed: .../node_modules/react-search-input/src/index.js Unexpected token
This is being cause by the spread operator.
Any idea why my project isn't pulling the code from the lib directory instead?
The text was updated successfully, but these errors were encountered: