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
When running pnpm dev to start the project, Vite configuration fails to load with an error indicating that the @vue/babel-plugin-jsx package is missing, even though it should be a dependency of the @vitejs/plugin-vue-jsx plugin.
Reproduction
Failed to load @vitejs/plugin-vue-jsx due to missing @vue/babel-plugin-jsx dependency
Steps to reproduce
Execute pnpm dev in the project root
Observe the Vite startup error:
Error: Cannot find package '...@vue/babel-plugin-jsx/dist/index.js'
PS C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend> pnpm dev
[email protected] dev C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend
vite --mode dev
failed to load config from C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\vite.config.ts
error when starting dev server:
Error: Cannot find package 'C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\node_modules.pnpm@[email protected]_vite@5.4.2_@types[email protected][email protected][email protected][email protected][email protected]_\node_modules@vue\babel-plugin-jsx\dist\index.js' imported from C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\node_modules.pnpm@[email protected]_vite@5.4.2_@types[email protected][email protected][email protected][email protected][email protected]_\node_modules@vitejs\plugin-vue-jsx\dist\index.mjs
Did you mean to import "@vue/babel-plugin-jsx/dist/index.js"?
at legacyMainResolve (node:internal/modules/esm/resolve:215:26)
at packageResolve (node:internal/modules/esm/resolve:841:14)
at moduleResolve (node:internal/modules/esm/resolve:927:18)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:540:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:509:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
at ModuleWrap. (node:internal/modules/esm/module_job:96:40)
at link (node:internal/modules/esm/module_job:95:36)
ELIFECYCLE Command failed with exit code 1.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
When running pnpm dev to start the project, Vite configuration fails to load with an error indicating that the @vue/babel-plugin-jsx package is missing, even though it should be a dependency of the @vitejs/plugin-vue-jsx plugin.
Reproduction
Failed to load @vitejs/plugin-vue-jsx due to missing @vue/babel-plugin-jsx dependency
Steps to reproduce
Execute pnpm dev in the project root
Observe the Vite startup error:
Error: Cannot find package '...@vue/babel-plugin-jsx/dist/index.js'
System Info
Used Package Manager
pnpm
Logs
PS C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend> pnpm dev
failed to load config from C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\vite.config.ts
error when starting dev server:
Error: Cannot find package 'C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\node_modules.pnpm@[email protected]_vite@5.4.2_@types[email protected][email protected][email protected][email protected][email protected]_\node_modules@vue\babel-plugin-jsx\dist\index.js' imported from C:\Users\TMN1WX\Desktop\me_smt_version_control\test\me_smt_version_control_frontend\node_modules.pnpm@[email protected]_vite@5.4.2_@types[email protected][email protected][email protected][email protected][email protected]_\node_modules@vitejs\plugin-vue-jsx\dist\index.mjs
Did you mean to import "@vue/babel-plugin-jsx/dist/index.js"?
at legacyMainResolve (node:internal/modules/esm/resolve:215:26)
at packageResolve (node:internal/modules/esm/resolve:841:14)
at moduleResolve (node:internal/modules/esm/resolve:927:18)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:540:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:509:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
at ModuleWrap. (node:internal/modules/esm/module_job:96:40)
at link (node:internal/modules/esm/module_job:95:36)
ELIFECYCLE Command failed with exit code 1.
Validations
The text was updated successfully, but these errors were encountered: