-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Babel not transpiling when using next@2.0.0-beta.24 #1042
Comments
Can you try using |
@timneutkens I did try that and it still wasn't working The config in package.json is working as intended because the custom server transpiling is being done by babel outside of next with the following command "build": "node_modules/.bin/babel ./ --out-dir build --ignore node_modules && cp -r static build" Then i build next using "build-next": "cd build && next build" and finally run the server "start": "NODE_ENV=production PORT=9000 node build/server.js" I didnt try using beta21-23, i will do that and post back the results |
@timneutkens We do support babel config in the @angel200sdnot could you send us a sample repo and tell us the exact error you are getting. |
@arunoda Here is the sample repo https://github.com/angel200sdnot/sample_repo |
It works just fine on next@2.0.0-beta.21, beta22-24 doesn't work. Used the same example on the examples folder |
Okay. Here's what's happening. I've seen many cases like this. So, I'd like to fix this directly. Note: when invoked |
I'm going to close this issue. Same as the pr #1095 |
If i use the beta 24 babel stops transpiling the code and simply copies the original into the output folder, reverting back to beta 20 fixes this issue
i have this on my package.json
The text was updated successfully, but these errors were encountered: