index.mjs broken? Trying to import default from performance-now
najamelan opened this issue · comments
Naja Melan commented
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?
Naja Melan commented
Somehow when I clone the repository locally I no longer get this error.
Reinstalled from npm and the error just disappeared.