Node.js WebPackageOptions ValidationError:配置插件[12]未命中属性apply
我最近将我的项目从vuetify 1.5升级到了2.1。。我还更新了所需的依赖项,并在devdependences中安装了fibers、deepmerge、sass、sass-loader。 现在,当我运行“纱线服务”时,它抛出以下错误Node.js WebPackageOptions ValidationError:配置插件[12]未命中属性apply,node.js,vue.js,webpack,vuetify.js,Node.js,Vue.js,Webpack,Vuetify.js,我最近将我的项目从vuetify 1.5升级到了2.1。。我还更新了所需的依赖项,并在devdependences中安装了fibers、deepmerge、sass、sass-loader。 现在,当我运行“纱线服务”时,它抛出以下错误 WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that do
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[12] misses the property 'apply'.
function
-> The run point of the plugin, required method.
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.plugins[12] misses the property 'apply'.
function
-> The run point of the plugin, required method.
at webpack (/home/usman/projects/project-crm/frontend/node_modules/webpack/lib/webpack.js:31:9)
at serve (/home/usman/projects/project-crm/frontend/node_modules/@vue/cli-service/lib/commands/serve.js:137:22)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
error Command failed with exit code 1.
我不知道这个错误发生在哪里。我在网上搜索了一下,但在网上没有找到答案
这个错误
configuration.plugins[12] misses the property 'apply'.
好的人们!!!
我找到了一个解决办法(诀窍)。在我看来,这当然是一个骗局,但对我来说,这绝对是个好办法。还记得我从vuetify 1.5升级到2.1时发生的这个错误吗。。。。
我采取的步骤是
- 使用最新的Vue和Vuetify创建了一个新项目(name=candy)
- 在我的原始项目
文件中安装了这个新项目(在我的例子中是candy)中的所有依赖项和devdependencypackage.json
- 您可以打开原始项目的
文件和新项目中的终端(candy),并运行命令package.json
或warn add“原始项目中的包名”
npm install“包名”
- 然后复制这个(candy)
文件并将其粘贴到我的原始项目文件夹中,并将这些文件和文件夹重命名为oldpackage.json
- 文件和文件夹==
到node\u modules
,node\u modules\u old
到package.json
,package\u old.json
到vue.config.js
warn\u old.lock
- 仅将candy项目的package.json复制到原始项目的文件夹中
- 运行命令
或warn install
npm install
- 服务器现在运行