Can't build app with 9.4.0 when using custom babel config
See original GitHub issueBug report
Describe the bug
Since v9.3.7-canary.17 I can’t build my app. It builds forever. When I remove the custom .babelrc
it works fine again.
{
"presets": [
[
"next/babel",
{
"styled-jsx": {
"plugins": ["styled-jsx-plugin-sass", "styled-jsx-plugin-postcss"]
}
}
]
],
"plugins": [
["macros"],
[
"module-resolver",
{
"root": ["./"],
"alias": {
"~": "./"
}
}
],
[
"@babel/plugin-transform-react-jsx",
{
"pragmaFrag": "React.Fragment"
}
]
]
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:20 (18 by maintainers)
Top Results From Across the Web
Custom .babelrc config does not work on 9.4.0 #12740 - GitHub
Bug report When using custom configs in next.config.js and a custom .babelrc file, the custom babel config is not applied.
Read more >Configure Babel
Babel can be configured! Many other tools have similar configs: ESLint ( .eslintrc ), Prettier ( .prettierrc ). All Babel API options are...
Read more >babel-preset-env not changing build size - Stack Overflow
I have an ES6 React app that is being bundled with webpack and using babel. I am configuring babel-preset-env, for node everything is...
Read more >Advanced Features: Customizing Babel Config - Next.js
To start, you only need to define a .babelrc file (or babel.config.js ) at the top of your app. If such a file...
Read more >Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Timer This is kind of a surprise for me that you are going away from
styled-jsx
. What about cases where you want stuff like:Can you explain your thoughts somewhere, because i am also using
styled-jsx-plugin-postcss
, and almost onlystyled-jsx
styled-jsx
has autoprefixing built in though: https://github.com/zeit/styled-jsx#vendorprefixesBut saw that you posted a reply on the postcss plugin that you went with the other approach @timer outlined 👍