Open DanHulton opened 1 year ago
👋🏼 hello! Indeed, this seems to not have been published correctly.
@ongteckwu would it be possible to publish a new version with a fresh build
? 🙏🏼
Thank you!
@marco-verbeek sure I will do that
published, leet me know if it works marco
@ongteckwu It seems like I'm still getting the same error on version 0.3.1.
/node_modules/typeid-ts/build/cjs/src/lib/basics.js:5
const uuidv7_1 = require("uuidv7");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/marco/Repositories/easy-auth/node_modules/uuidv7/dist/index.js from /node_modules/typeid-ts/build/cjs/src/lib/basics.js not supported.
Instead change the require of index.js in /node_modules/typeid-ts/build/cjs/src/lib/basics.js to a dynamic import() which is available in all CommonJS modules.
Could you double check if the require is still there on your end as well ? 🙏🏼 Let me know if there's anything I can help with.
I highly appreciate your time, thank you so much!
ok can you try again. Sorry was busy whole week.
Still seeing the error in v0.3.8 @ongteckwu
I think the 0.3.0 version on npm did not have
build
run successfully on it before being published - it's missing the new await-free import method from https://github.com/ongteckwu/typeid-ts/pull/7.If you update a project's dependency to
0.3.0
of this library and install it, thencat node_modules/typeid-ts/build/cjs/src/lib/basics.js
, the oldconst uuidv7_1 = require("uuidv7");
require method is still there.