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
FAIL test/marketplaces.test.ts [ test/marketplaces.test.ts ]
Error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
❯ TransformPluginContext.formatError ../../node_modules/.pnpm/[email protected]@types[email protected]/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49746:41
❯ TransformPluginContext.error ../../node_modules/.pnpm/vite@5.3.3_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49741:16
❯ TransformPluginContext.transform ../../node_modules/.pnpm/vite@5.3.3_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:64283:14
❯ PluginContainer.transform ../../node_modules/.pnpm/vite@5.3.3_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49587:18
❯ loadAndTransform ../../node_modules/.pnpm/vite@5.3.3_@types[email protected]/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:52409:27
Hello @Wizzel1. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
So I have a turbo monorepo with a package called "types" where I export all types and constants from an index.ts file.
This is its package.json:
In this package I have installed vitest and I want to test this file:
src/marketplaces.ts
but just a basic test like this fails:
with the error:
This is my vitest.config.ts:
At this point I have basically copy pasted this example (without the tsconfig):
https://stackblitz.com/edit/vitest-dev-vitest-racxw9?file=tsconfig.json&initialPath=__vitest__/
Reproduction
N/A
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: