Add in the babel.config.js file:
plugins: [
[
'@babel/plugin-proposal-decorators',
{
'legacy': true
}
]
]
Such as:
Similar Posts:
- [Solved] react Project Error: Support for the experimental syntax ‘decorators-legacy’ isn’t currently enabled
- [Solved] Mobx error: Support for the experimental syntax ‘decorators-legacy’ isn’t currently enab
- [Solved] Vue/cli install element error: Error: cannot find module ‘Babel plugin component’
- React uses antd to import error messages on demand
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- Solve the problem of JS using JSX syntax to report errors in vite react project
- Nuxt module build failed error report
- Cannot find module ‘@babel/core’ [How to Solve]
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error