You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zamiell@computer js % npx tscc --debug
TSCC: TypeError: Cannot read property 'map' of undefined
at transformBundle (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:70027:53)
at transformSourceFileOrBundle (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:70022:24)
at transformation (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:85827:24)
at transformRoot (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:85847:82)
at Object.map (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:507:29)
at Object.transformNodes (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:85834:30)
at emitJsFileOrBundle (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:86340:32)
at emitSourceFileOrBundle (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:86293:13)
at forEachEmittedFile (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:86073:34)
at Object.emitFiles (/Users/Zamiell/Repositories/hanabi-live/public/js/node_modules/@tscc/tscc/node_modules/typescript/lib/typescript.js:86274:9)
For reference, the error happens at the following code, e.g. typescript.js:70027:
function transformBundle(node) {
return ts.createBundle(node.sourceFiles.map(transformSourceFile), ts.mapDefined(node.prepends, function (prepend) {
if (prepend.kind === 288 /* InputFiles */) {
return ts.createUnparsedSourceFile(prepend, "js");
}
return prepend;
}));
}
My tsconfig:
{
"compilerOptions": {
"downlevelIteration": true,
"importHelpers": true, // Not necessary since TSCC forces it, but oh well
"module": "commonjs", // Not necessary since TSCC forces it, but oh well
},
"include": [
"./src/**/*.ts",
],
}
My tscc.spec.json:
{
"modules": {
"out": "src/main.ts"
}
}
The --debug command seems to do nothing.
The error message is pretty unhelpful
Any tips?
The text was updated successfully, but these errors were encountered:
If npx fixes it, it could be due to typescript version mismatch. Also, as I recall the transformBundle code path should not be taken for projects fed to tsickle. If there are some files that are not 'modules', i.e. without export or import statements, try making those into modules. In any case a minimal reproduction case would be helpful.
For reference, the error happens at the following code, e.g.
typescript.js:70027
:My tsconfig:
My tscc.spec.json:
Any tips?
The text was updated successfully, but these errors were encountered: