#Error [ERR_REQUIRE_ESM]: require() of ES Module
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
followed this thread https://discord.com/channels/508357248330760243/1093576234472067132
but i am using typscript & getting import error
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './utils/db.js'?ts(2835)
did you try the path listed in the error? just adding .js to the path
why would i use .js if i am using .ts ? i should work without adding .js or .ts in the end