most-inesctec / kruonis

:hourglass: A tool to perform benchmarks, on TypeScript :hourglass:

Home Page:https://www.npmjs.com/package/kruonis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

index.mjs broken? Trying to import default from performance-now

najamelan opened this issue · comments

I was trying to use kruonis in a browser to run some benchmarks, however I get this error:

Uncaught SyntaxError: import not found: default

at the beginning of index.mjs:

import now from 'performance-now';

Im a bit new to npm and different module systems, but from looking at performance-now, it looks like its cjs only. They only have module.exports, no esm export. Maybe that's the problem here?

Somehow when I clone the repository locally I no longer get this error.

Reinstalled from npm and the error just disappeared.