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:
- package.json And package- clock.json The difference between
- Failed to load plugin jsdoc: Cannot find module ‘eslint-plugin-jsdoc‘
- Solutions to yarn install error reporting
- How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core
- Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core
- Webpack multi version incompatibility error
- Error: Cannot find module ‘@babel/core’
- Elememt UI introduces components on demand to report errors
- Gulp failed to run
- Module build failed: error:couldn’t find preset “env” relative to directory
- NPM err! Code enotfound (2020-07-03)
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- Yard error: found incompatible module
- CompilationFailureException: Compilation failure error: cannot access NotThreadSafe
- UnhandledPromiseRejectionWarning Error: Can‘t set headers after they are sent (How to Fix)
- Module build failed (from ./node_modules/babel-loader/lib/index.js) babel-loader
- [Solved] Ktolin Android Project Compile Error: w: Runtime JAR files in the classpath should have the same version. These file
- npm ERR! Error: CERT_ Untrusted problem solving
- Error reported by gulp: referenceerror: primordials is not defined
- ERROR Error: Cannot find module ‘../../uni-cli-sharedlib/tags‘