We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Using default export throws error on runtime: TypeError: Cannot read properties of null (reading 'declarations')
TypeError: Cannot read properties of null (reading 'declarations')
To Reproduce Steps to reproduce the behavior:
model/shared_utils/utils.js
const _capitalize = (s) => s.charAt(0).toUpperCase() + s.slice(1); export { _capitalize as capitalize }
Expected behavior I am expecting to be able to use the default export without runtime error.
Version: 0.36.0
Additional context I believe, that root case is located in packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts
packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts
The text was updated successfully, but these errors were encountered:
I am expecting to be able to use the default export without runtime error.
Hey @arkadiusz-swierczek-pm 👋 Could you please elaborate on this? Is there anything that you can not accomplish without default exports?
Sorry, something went wrong.
Hey
I made an error in the title and the description. The problem doesn't occured when using default export, but named export.
I have created minimal example showing how to get the error: https://github.com/arkadiusz-swierczek-pm/cube-8885, and also PR: #8774
Please also take a look at the link:, that show another way to get the error https://astexplorer.net/#/gist/c9de828dbc29e8df9bf88e8a58c58842/4ef985fb1fcfb3c9a0c22c1561f08e11de8d6714
@igorlukanin Do you have any updates on this?
igorlukanin
No branches or pull requests
Describe the bug
Using default export throws error on runtime:
TypeError: Cannot read properties of null (reading 'declarations')
To Reproduce
Steps to reproduce the behavior:
model/shared_utils/utils.js
withExpected behavior
I am expecting to be able to use the default export without runtime error.
Version:
0.36.0
Additional context
I believe, that root case is located in
packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts
The text was updated successfully, but these errors were encountered: