-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot build index.d.ts file due to an invalid export syntax #287
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@vinibiavatti1 Hi! Thanks for the issue! Do you wanna create PR with fix? |
sure @magicmatatjahu. Let me solve it and I will open a PR |
Co-authored-by: Lukasz Gornicki <[email protected]>
🎉 This issue has been resolved in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Since the option
esModuleInterop: true
is not set to the project, the file index.d.ts cannot be compiled. This happens because the module definition of the file uses an invalid export syntax, when it should use theexport=
syntax type. This is described better on this documentation: Module.d.tsFile path: https://github.com/asyncapi/spec-json-schemas/blob/master/index.d.ts
How to Reproduce
npm run build:prod
(tested in local environment only)Link to GitHub repository with project that has issues:
https://github.com/asyncapi/server-api
Expected behavior
After running the command, it should finish without any build errors.
The text was updated successfully, but these errors were encountered: