Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'vite-plugin-dts' on install in another project #48

Closed
brollb opened this issue Oct 10, 2022 · 0 comments
Closed

Cannot find module 'vite-plugin-dts' on install in another project #48

brollb opened this issue Oct 10, 2022 · 0 comments

Comments

@brollb
Copy link
Collaborator

brollb commented Oct 10, 2022

When using WJI in another project, installing with the latest results in build errors:

npm ERR! > [email protected] build:lib
npm ERR! > vite build
npm ERR! failed to load config from C:\WORK\webgme-cwl\node_modules\webgme-json-importer\vite.config.js
npm ERR! error during build:
npm ERR! Error: Cannot find module 'vite-plugin-dts'
npm ERR! Require stack:
npm ERR! - C:\WORK\webgme-cwl\node_modules\webgme-json-importer\vite.config.js
npm ERR! - C:\WORK\webgme-cwl\node_modules\vite\dist\node\chunks\dep-689425f3.js
npm ERR! - C:\WORK\webgme-cwl\node_modules\vite\dist\node\cli.js
npm ERR! - C:\WORK\webgme-cwl\node_modules\vite\bin\vite.js
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:804:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
npm ERR!     at Object.<anonymous> (C:\WORK\webgme-cwl\node_modules\webgme-json-importer\vite.config.js:33:38)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1126:14)
npm ERR!     at Object.require.extensions.<computed> [as .js] (C:\WORK\webgme-cwl\node_modules\vite\dist\node\chunks\dep-689425f3.js:62006:20)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1004:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:839:12)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1028:19)
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tamas\AppData\Local\npm-cache\_logs\2022-10-10T15_58_38_051Z-debug-0.log
PS C:\WORK\webgme-cwl>

We shouldn't be building on postinstall

@brollb brollb changed the title Installation errors Cannot find module 'vite-plugin-dts' on install in another project Oct 10, 2022
@brollb brollb closed this as completed in 5e811df Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant