As a way to make a project of nuxt
, this exception occurred. Module build failed: Error: Plugin/ prefiles are not allowed to export objects, only functions
: make of the following figure:
Ii. Problem Analysis and Solution: Babel
version conflict, Babel
dependency package is not compatible, package.json
dependency package contains both Babel 7.0
version and Babel 6.0
version, the two versions are obviously incompatible, We can upgrade to Babel 7.0
version, through NPM install [email protected]
command all upgrade to Babel 7.0
version, so the conflict problem of the versions can be solved.
Read More:
- Module build failed: error:couldn’t find preset “env” relative to directory
- How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- Failed to load plugin jsdoc: Cannot find module ‘eslint-plugin-jsdoc‘
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded How to Fix
- How to Fix Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- How to Fix Gtk-Message: Failed to load module “canberra-gtk-module”
- VScode: How to Fix “Comments are not permitted in JSON” issue
- UnhandledPromiseRejectionWarning Error: Can‘t set headers after they are sent (How to Fix)
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Git push you are not allowed to upload merges
- GitLab You are not allowed to push code to this project
- Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build Exception caught: basedir src/mai
- Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core