[@snowpack/plugin-optimize] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined #2373
DenisTimofijuk
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using @snowpack/app-template-blank-typescript with default configs. Everything was working fine up to that point when I installed
npm install --save-dev @snowpack/plugin-optimize
. Using suggested configuration I am getting an error. Please help.`$ npm run build
[snowpack] ! building source files...
[snowpack] ✔ build complete [0.08s]
[snowpack] ! installing dependencies...
[snowpack] ! verifying build...
[snowpack] ✔ verification complete [0.01s]
[snowpack] ! writing build to disk...
[snowpack] ! optimizing build...
[@snowpack/plugin-optimize] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build:
snowpack build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dennk\AppData\Roaming\npm-cache_logs\2021-01-18T15_11_11_711Z-debug.log`
package.json
Beta Was this translation helpful? Give feedback.
All reactions