vue-2.0-FamilyBucket
vue-2.0-FamilyBucket copied to clipboard
Webpack有错
mac下npm install之后 npm run dev/build都报错。webpack的错。 Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.resolve has an unknown property 'root'. These properties are valid: object { alias?, aliasFields?, cachePredicate?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, resolver?, symlinks?, unsafeCache? }
- configuration.resolve.extensions[0] should not be empty.
you can try to modify webpack.config.js
下 resolve
javascript
extensions: ['.js', '.vue']
maybe this is the new use of webpack problem