You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue inspect --mode production --plugin copy # works, favicon is in ignore list
yarn build # fail, see below for output
Or see README.md in reproduction link
What is expected?
yarn build run successfully
What is actually happening?
yarn run v1.22.10
$ vue-cli-service build
✔ Building legacy bundle for production...
ERROR Error: Cannot call .tap() on a plugin that has not yet been defined. Call plugin('copy').use(<Plugin>) first.
Error: Cannot call .tap() on a plugin that has not yet been defined. Call plugin('copy').use(<Plugin>) first.
at Object.tap (PROJECT_ROOT\node_modules\webpack-chain\src\Plugin.js:26:15)
at chainWebpack (PROJECT_ROOT\vue.config.js:3:27)
at PROJECT_ROOT\node_modules\@vue\cli-service\lib\Service.js:252:40
at Array.forEach (<anonymous>)
at Service.resolveChainableWebpackConfig (PROJECT_ROOT\node_modules\@vue\cli-service\lib\Service.js:252:26)
at PluginAPI.resolveChainableWebpackConfig (PROJECT_ROOT\node_modules\@vue\cli-service\lib\PluginAPI.js:145:25)
at module.exports (PROJECT_ROOT\node_modules\@vue\cli-service\lib\commands\build\resolveAppConfig.js:9:22)
at build (PROJECT_ROOT\node_modules\@vue\cli-service\lib\commands\build\index.js:147:50)
at PROJECT_ROOT\node_modules\@vue\cli-service\lib\commands\build\index.js:77:13
at Service.run (PROJECT_ROOT\node_modules\@vue\cli-service\lib\Service.js:246:12)
I am migrating from v4 to v5. Using chainWebpack to tap copy plugin works in v4 but fails in v5. I have already upgraded copy-webpack-plugin config.
The text was updated successfully, but these errors were encountered:
Version
5.0.0-beta.3
Reproduction link
https://github.com/AllanChain/vue-cli-webpack-plugin-undefined
Environment info
Steps to reproduce
Add
vue.config.js
Run:
Or see
README.md
in reproduction linkWhat is expected?
yarn build
run successfullyWhat is actually happening?
I am migrating from v4 to v5. Using
chainWebpack
to tap copy plugin works in v4 but fails in v5. I have already upgradedcopy-webpack-plugin
config.The text was updated successfully, but these errors were encountered: