Files
NapCatQQ/.pnpm-store/v3/files/73/a8825fa5b3ed9c734112fbe85336561fcea5c6a9777a23553651b1720da995b07fd6cacdc009e93130d6466d2c4258b32b0c88667b20a6e8d7ff530f11d43f
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

6 lines
412 B
Plaintext

throw new Error(
'Vitest cannot be imported in a CommonJS module using require(). Please use "import" instead.'
+ '\n\nIf you are using "import" in your source code, then it\'s possible it was bundled into require() automatically by your bundler. '
+ 'In that case, do not bundle CommonJS output since it will never work with Vitest, or use dynamic import() which is available in all CommonJS modules.',
)