Closed quantuminformation closed 1 year ago
I am facing the same issue. I am developing standalone library and found out that this error appears only when I define "exports" in my package.json.
I had to drop the plugin at all and manually set the alias in vitest.config.js. In my case it was:
// tsconfig.json
{
// …
"paths": {
"~/**: ["src/*"]
}
}
// vitest.config.js
export default defineConfig({
test: {
alias: {
"~: path.join(process.cwd(), “/src”)
}
}
})
@quantuminformation You should import vite-tsconfig-paths
instead of vite-tsconfig-paths/dist
.
@svobik7 Your issue seems different. Please open another issue when you can.
anyone seen that error ^