-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove 'next/babel' preset #1805
Conversation
cc @tbergq |
And now the |
Yeah, there is a little gotcha, we are not running this script locally with our |
Maybe we should have a separate babel-preset for our next-apps, it seems like our preset is not playing nicely with |
💡 Aha, that's why it's only when running the script directly. I thought it's somehow related to running tests vs. running monorepo-babel-node.
But why doesn't it play nicely? I don't understand. I am not sure if our preset is the one to blame. 🤔 |
Well, it just feels like if the order matters and we have to add additional plugins that are in the preset because we use these 2 presets together, they don't work well together. I am not sure ours is to blame either. The important part is that we can build or app and run the test scripts 😊 |
This partially reverts 1c5d0b4 Something changed somewhere somehow. I faced similar issue yesterday with broken class properties plugin and Flow types so I had to do something. This seems to be fixing the issue at least for now.
00eef51
to
96d440d
Compare
@tbergq OK, so I'd like to propose a removal of |
I'll approve it, but it would be nice to double check what it actually adds, and verify that we are not missing some plug-in. Also, I see that the pipeline is still failing. |
We are definitely missing some Next.js specifics, see: https://github.com/vercel/next.js/blob/4b587d34b867b4f5bad20d520b789f1543249df2/packages/next/build/babel/preset.ts I don't know how to push it forward though. Having
Notice the Typescript-specific errors, WTF.
I think it's failing because of this which is unrelated: #1825 |
I am closing this for now because I am not confident about what's actually going on. 😞 #help_needed 😬 |
This partially reverts 1c5d0b4
Something changed somewhere somehow. I faced similar issue yesterday with broken class properties plugin and Flow types so I had to do something. This seems to be fixing the issue at least for now.