Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单元测试 #43

Open
a406299736 opened this issue Sep 13, 2024 · 1 comment
Open

单元测试 #43

a406299736 opened this issue Sep 13, 2024 · 1 comment

Comments

@a406299736
Copy link

在项目里使用单元测试时,报错:
Failed to resolve entry for package "@webassemblyjs/helper-api-error". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1225:21:
  1225 │         let result = await callback({
       ╵                      ^

at packageEntryFailure (file:///xxx/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:47164:15)
at resolvePackageEntry (file:///xxx/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:47161:3)
@hooray
Copy link
Member

hooray commented Sep 26, 2024

请提供下完整的复现步骤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants