-
-
Notifications
You must be signed in to change notification settings - Fork 232
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] Aedes is undefined in Typescript #927
Comments
nope, tried 0.49.0 and 0.50.0, same error |
Could you submit a PR to fix the issue? |
I don't think there is a PR needed here - the issue is with the compilation options the user is using, not the code itself. Try using: tsconfig.json:
Ensure package.json has @robertsLando I can confirm that everything is working as it should be with the existing release. |
confirmed, need
btw, the compiler options I used before are copied from NestJS |
tried run Aedes with NestJS, failed as expected. workaround for NestJS :
found another ts compiler option |
@hjdhjd So it only works with ESM now? Does it always require type module?? |
System Information
Describe the bug
Run official example, Aedes is undefined and got error
TypeError: aedes_1.default is not a constructor
To Reproduce
Steps to reproduce the behavior:
create 3 files below and run shell
npm install && npm run start
package.json
tsconfig.json
/src/main.ts
Expected behavior
Should start a broker
Additional context
main.js
The text was updated successfully, but these errors were encountered: