-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
questionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.
Description
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:
- Create directory structure described in https://cube.dev/docs/product/data-modeling/dynamic/code-reusability-export-and-import#import-from-parent-directories
- Replace content of
model/shared_utils/utils.jswith
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
Metadata
Metadata
Assignees
Labels
questionThe issue is a question. Please use Stack Overflow for questions.The issue is a question. Please use Stack Overflow for questions.