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
Hey there, I get this error message when building:
$ npx vite build
vite v2.0.2 building for production...
✓ 1036 modules transformed.
(node:21472) UnhandledPromiseRejectionWarning: ValidationError: "importWorkboxFrom" is not allowed
(node:21472) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:21472) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The build itself seems to work, but I'm not sure what the error message means.
This is my vite.config.js:
module.exports = {
plugins: [
VitePWA({
strategies: 'injectManifest',
injectManifest: {
importWorkboxFrom: 'local',
swSrc: './src/ServiceWorker/sw.js',
},
manifest: {
// ... A lot of manifest config ...
},
}),
],
}
The text was updated successfully, but these errors were encountered:
Hey there, I get this error message when building:
The build itself seems to work, but I'm not sure what the error message means.
This is my
vite.config.js
:The text was updated successfully, but these errors were encountered: