Skip to content

rayhomie/vitest-bug-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1

npm i

2

npm run test

3 appear bug Error

when "vitest": "~1.5.0", an error occurs :

SyntaxError: Named export 'render' not found. The requested module './node_modules/preact-render-to-string/dist/index.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from './node_modules/preact-render-to-string/dist/index.js';
const { render: serverRender } = pkg;

when "vitest": "~1.4.0", Program runs normally :

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published