问题标签 [vue-pwa]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
13 浏览

vue.js - Vue CLI - vue add pwa 导致 TypeError: Cannot read properties of undefined (reading 'tapAsync') 错误

我正在使用 Vue 3 构建一个 Web 应用程序,执行后vue add pwa出现以下错误:
./node_modules/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js:62 compilation.hooks.htmlWebpackPluginBeforeHtmlProcessing.tapAsync(ID, (data, cb) => {
TypeError: Cannot read properties of undefined (reading 'tapAsync')

我该如何解决这个问题?