-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: ExpressJS Quickstart = Directory Import error on Nodejs v20 and Deno v2 #7071
Open
2 tasks done
Labels
Comments
This is a lot of text but this is the error I get on Node.js v20
|
Update! We were able to find that this error does not occur on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📜 Description
I have an expressjs NodeJS (v20) project with type: module and got import errors following the quickstart guide for express.
https://docs.novu.co/quickstart/express
We are hoping to move to Deno v2 (TypeScript) soon, so I ran the project in Deno + TypeScript and got error:
error: [ERR_UNSUPPORTED_DIR_IMPORT] Directory import 'file:///<user>/backend/node_modules/.deno/@[email protected]/node_modules/@novu/shared/dist/esm/config' is not supported resolving ES modules imported from 'file:///<user>/backend/node_modules/.deno/@[email protected]/node_modules/@novu/shared/dist/esm/index.js'
👟 Reproduction steps
Run expressjs in Node.js v20 and set
"type": "module",
.OR
Setup expressjs in Deno V2 using TypeScript
Quickstart guide for express and has export error in both.
👍 Expected behavior
No export error.
👎 Actual Behavior with Screenshots
Terminal error is pasted above:
Novu version
Novu SaaS
@novu/[email protected]
EDIT:
This error does not occur on @novu/[email protected]
npm version
NA
node version
v20.18.0
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: