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
> vite
failed to load config from D:\0016--Vite--TypeScript-Paths\vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'VitePlugins' imported from D:\0016--Vite--TypeScript-Paths\vite.config.ts.timestamp-1662805287895.mjs
at new NodeError (node:internal/errors:393:5)
at packageResolve (node:internal/modules/esm/resolve:810:9)
at moduleResolve (node:internal/modules/esm/resolve:859:20)
at defaultResolve (node:internal/modules/esm/resolve:1074:11)
at nextResolve (node:internal/modules/esm/loader:164:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:839:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:426:18)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)
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.
I think this should be closed in favour of #6828. It would be confusing if the tsconfig paths work in vite.config.js but not in the Vite project. We should have it both working for this feature.
Describe the bug
paths
added totsconfig.node.json
are not able to be imported when runningvite
.Expected:
Aliased paths will be imported successfully.
Actual:
ERR_MODULE_NOT_FOUND
is thrown.Reproduction
enteleform-codesandbox/0016--Vite--TypeScript-Paths@c970d37
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: