yarn add Babel - presets - 0-d
yarn add Babel - presets -env-d
then add to the root directory of .babelrc
"presets": [
"env",
"react",
"stage-0"
],
Can. Env and stage-0 are guaranteed to exist, env covers es2015,2016,2017, and is now also officially recommended.
Read More:
- Export and import method of MySQL under Linux
- Datagrip import & export table structure and data
- ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- Import / export. SQL file / gzip file for MySQL under Linux
- Solve the problem of import Cafe: runtimewarning: numpy.dtype Size changed, may indicate binary instability
- Failed to import module __PyInstaller_hooks_0_IPython required by hook for module
- Attributeerror: ‘module’ object has no attribute ‘handlers’ — Python sub module import problem
- [Solved] Import Echars5.0 Error: “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
- pip Import Error:cannot import Name main solution
- Module parse failed:Unexpectedtoken (1:0)You may need an appropriate loader to handle this file type
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’
- 2021-07-03module parse failed: unexpected token (763:13) you may need an appropriate loader to
- Solution: when cmake is compiled, “error in configuration process project files may be invalid” appears
- Import sys module
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Duplicate keys detected: ‘XXXX’. This may cause an update error. Solution
- About the solution of error: cannot find module ‘@ Babel / core’
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Python dynamically imports objects, importlib.import_ Module() uses