-
Notifications
You must be signed in to change notification settings - Fork 53
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
Couldn't find preset "es2015" relative to directory node_modules/redux-socket.io #32
Comments
I am exact same issue i installed npm install --save-dev babel-preset-es2015 but still not working.anyone find any solution |
Hmm, I've not seen this myself. Could someone create a minimal reproduction case in a repo so that I can try to figure out what's going on? My guess is that there is some part of the tooling stack you're using that is looking at the |
To test my above theory, you could try removing the file |
@digitaldangal I have exactly the same problem. It got fixed by running What is this code doing at the beginning of Object.defineProperty(exports, "__esModule", {
value: true
}); |
@itaylor No, removing .babelrc doesn't change anything, it's really weird .. I'll go with the solution of @pensierinmusica for now. edit: Actually the suggested solution doesn't seem to work in my case .. |
Removing Can we exclude |
@aforty, Yes, I think excluding the |
Correct, it’s the way the build tool works for react-native unfortunately. |
npm i babel-preset-es2015 --save-dev OR yarn add babel-preset-es2015 --dev I'm using the create-react-native-app, it was fixed when installed the preset |
When I add an
import createSocketIoMiddleware from 'redux-socket.io';
I get this error in runtime:Versions used:
Am I missing something ?
Thanks !
The text was updated successfully, but these errors were encountered: