Open
Description
Describe the bug
The cubejs-cli generate -t <TABLE-NAME>
fails with the following error:
Cube Error ---------------------------------------
Error: @cubejs-backend/schema-compiler/scaffolding/ScaffoldingTemplate.js dependency not found. Please run this command from project directory.
at requireFromPackage (.../node_modules/@cubejs-backend/shared/src/package.ts:56:11)
at generate (.../node_modules/cubejs-cli/src/command/generate.ts:74:49)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Code:
To Reproduce
From the terminal, run the command:
npx cubejs-cli generate -t <TABLE-NAME>
Expected behavior
The generation of the schema of the table indicated in input.
Version:
0.32.27 with package.json
:
"devDependencies": {
"@cubejs-backend/redshift-driver": "0.32.27",
"@cubejs-backend/server": "0.32.27",
"cubejs-cli": "0.32.27"
}
Additional context
I verified that with version 0.31.46 the command works correctly. I suspect the problem was introduced in version 0.32 when absolute imports were removed.
As additional note, the @cubejs-backend/schema-compiler/scaffolding/ScaffoldingTemplate.js
file no longer exists.