-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
Vitest test crash upon upgrading to svelte4.
Reproduction
Minimal Example Repo:
https://github.com/cesarnml/svelte4-testing-example
- Git clone above repo.
pnpm i
pnpm test:unit
Logs
FAIL src/routes/page.spec.ts [ src/routes/page.spec.ts ]
Error: No "exports" main defined in /Users/cesar/code/svelte4-testing-example/node_modules/.pnpm/@[email protected][email protected]/node_modules/svelte/package.json
❯ Object.<anonymous> node_modules/.pnpm/@[email protected][email protected]/node_modules/@testing-library/svelte/dist/pure.js:28:15
Serialized Error: {
"code": "ERR_PACKAGE_PATH_NOT_EXPORTED",
}
### System Info
```shell
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1
Memory: 84.80 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
Browsers:
Brave Browser: 114.1.52.117
Chrome: 113.0.5672.126
Chrome Canary: 116.0.5813.0
Firefox: 101.0
Firefox Developer Edition: 114.0
Firefox Nightly: 111.0a1
Safari: 16.5
npmPackages:
svelte: 4.0.0-next.0 => 4.0.0-next.0
Severity
blocking all usage of svelte
Metadata
Metadata
Assignees
Labels
No labels