You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1026:15)
at Module._compile (node:internal/modules/cjs/
....
You need to:
rename geo-tz.modern.js to geo-tz.modern.mjs
or add "type": "module" to the package.json and rename geo-tz.js to geo-tz.cjs;
update extensions in package.json exports;
The text was updated successfully, but these errors were encountered:
Fixes#129
microbundle is not happy with the mixing of default and named exports. It seems the easiest thing to do here is make the default export a named export.
This is probably a breaking change from v7.0.0, but since it was released not long ago and not really working all that well anyways, I'm just calling this a fix and assuming this named export thing should've been a breaking change that landed in v7.0.0.
This is probably a violation of SEMVER in a strict sense, so I apologize to anyone who already made workarounds for what was in v7.0.0.
Error:
You need to:
geo-tz.modern.js
togeo-tz.modern.mjs
"type": "module"
to thepackage.json
and renamegeo-tz.js
togeo-tz.cjs
;package.json
exports;The text was updated successfully, but these errors were encountered: