Open nervusdm opened 2 years ago
same with vue build
Environment info
Environment Info:
System:
OS: Windows 10 x64
CPU: Intel(R) Core(TM) i7-4720HQ
Binaries:
Node: v14.16.1 - /usr/local/bin/node
npm: 6.14.12 - /usr/local/bin/npm
Browsers:
Chrome: 99.0.4844.51 (Official Build) (64-bit)
npmPackages:
"@tailwindcss/postcss7-compat": "^2.2.17",
"@vee-validate/rules": "^4.5.7",
"@intlify/vue-i18n-loader": "^3.0.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-e2e-cypress": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-unit-jest": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"@vue/eslint-config-airbnb": "^5.0.2",
"@vue/cli-plugin-pwa": "5.0.1"
"@vue/test-utils": "^2.0.0-0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-vue": "^7.0.0",
"typescript": "~3.9.3",
"vue-cli-plugin-i18n": "~2.3.1",
"vue-cli-plugin-tailwind": "~2.2.18",
"vue-jest": "^5.0.0-0"
"autoprefixer": "^9",
"core-js": "^3.6.5",
"css-minimizer-webpack-plugin": "^1.3.0",
"firebase": "8",
"howler": "^2.2.3",
"postcss": "^7",
"register-service-worker": "^1.7.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"vee-validate": "^4.5.8",
"vue": "^3.0.0",
"vue-i18n": "^9.1.0",
"vue-router": "^4.0.0-0",
"vuex": "^4.0.2"
I have the same issue with 5.0.1 I've attached the output below
$ vue-cli-service build --mode production --target app --dashboard
- Building for production...
ERROR TypeError: Cannot read property 'tapPromise' of undefined
TypeError: Cannot read property 'tapPromise' of undefined
at \node_modules\@vue\cli-plugin-pwa\node_modules\workbox-webpack-plugin\build\generate-sw.js:107:49
at SyncHook.eval [as call] (eval at create (\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:9:1)
at SyncHook.lazyCompileHook (\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.newCompilation (\node_modules\webpack\lib\Compiler.js:630:30)
at \node_modules\webpack\lib\Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.compile (\node_modules\webpack\lib\Compiler.js:662:28)
at \node_modules\webpack\lib\Compiler.js:321:11
at Compiler.readRecords (\node_modules\webpack\lib\Compiler.js:529:11)
at \node_modules\webpack\lib\Compiler.js:318:10
at AsyncSeriesHook.eval [as callAsync] (eval at create (\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
at AsyncSeriesHook.lazyCompileHook (\node_modules\tapable\lib\Hook.js:154:20)
at \node_modules\webpack\lib\Compiler.js:315:19
at AsyncSeriesHook.eval [as callAsync] (eval at create (\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
at AsyncSeriesHook.lazyCompileHook (\node_modules\tapable\lib\Hook.js:154:20)
I have the same problem
Yep, same issue here.
package.json: "dependencies": { "blockly": "^8.0.2", "chokidar": "^3.5.3", "core-js": "^3.6.5", "pinia": "^2.0.14", "register-service-worker": "^1.7.2", "sweetalert2": "^8.19.0", "three": "^0.140.2", "vue": "^3.0.0", "vue-i18n": "^9.1.10", "vue-router": "^4.0.15" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^4.18.0", "@typescript-eslint/parser": "^4.18.0", "@vue/cli-plugin-babel": "~4.5.15", "@vue/cli-plugin-eslint": "~4.5.15", "@vue/cli-plugin-pwa": "~5.0.0", "@vue/cli-plugin-typescript": "~4.5.15", "@vue/cli-service": "~4.5.15", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-typescript": "^7.0.0", "autoprefixer": "^9.8.8", "babel-eslint": "^10.1.0", "eslint": "^6.7.2", "eslint-plugin-vue": "^7.0.0", "typescript": "~4.1.5" }, "eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript" ],
I had the same issue, downgrading to @vue/cli-plugin-pwa": "4.5.17"
solved it.
I had the same issue, downgrading to
@vue/cli-plugin-pwa": "4.5.17"
solved it.
It worked!
Version
5.0.1
Environment info
Steps to reproduce
yarn build
What is expected?
Buidling success.
What is actually happening?
Just installed vue cli, and pwa plugin. Now, I can't do yarn build.