You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
412 B
6 lines
412 B
1 month ago
|
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.',
|
||
|
)
|