FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

Fix: "Error: Cannot find module 'dotenv-expand'" #107

Closed au5ton closed 4 years ago

au5ton commented 4 years ago

Fixes:

austin@europa ~/s/c/web> npm start

> web@1.0.0 start /redacted/web
> snowpack dev

Error: Cannot find module 'dotenv-expand'
Require stack:
- /redacted/web/node_modules/@snowpack/plugin-dotenv/plugin.js
- /redacted/web/node_modules/snowpack/dist-node/index.js
- /redacted/web/node_modules/snowpack/dist-node/index.bin.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
    at Function.Module._load (internal/modules/cjs/loader.js:838:27)
    at Module.require (internal/modules/cjs/loader.js:1022:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /redacted/web/node_modules/@snowpack/plugin-dotenv/plugin.js:29:7
    at Array.forEach (<anonymous>)
    at plugin (/redacted/web/node_modules/@snowpack/plugin-dotenv/plugin.js:27:15)
    at /redacted/web/node_modules/snowpack/dist-node/index.js:4187:50
    at Array.map (<anonymous>)
    at normalizeConfig (/redacted/web/node_modules/snowpack/dist-node/index.js:4179:35)
    at loadAndValidateConfig (/redacted/web/node_modules/snowpack/dist-node/index.js:4419:10)
    at cli (/redacted/web/node_modules/snowpack/dist-node/index.js:4488:13)
    at Object.<anonymous> (/redacted/web/node_modules/snowpack/dist-node/index.bin.js:29:1)
    at Module._compile (internal/modules/cjs/loader.js:1118:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
FredKSchott commented 4 years ago

bah, monorepos are great but they always hide this kind of issue. Thanks for fixing