Closed jejanim closed 3 years ago
It looks like there's some issue with war3-transformer. Do you have your code available publicly somewhere?
If not, you might be able to find which file is causing the error by adding a debug line which prints the current file to https://github.com/cipherxof/war3-transformer/blob/master/dist/transformer.js#L110
If you do figure it out please let me know.
I did not push it yet, so that's a no for question one.
I will try to pin down the issue and keep you updated, thanks for the hint with the transformer.
Update: I pinned it down to the following file by inserting the logs: node_modules/w3ts/hooks/index.ts
. However, that seems unlikely as that file did not change 🤔
The code is available here: https://github.com/jejanim/shatter-td/tree/typescript2
I found the issue to be related to the new typescript version: war3-transformer
uses 3.8.3 while I used 4.0.3
Downgrading did fix it. 😄
The one thing that brought me to this was that this log here was the last thing that happened:
file: transformer.js (package war3-transformer)
function runTransformer(program) {
var checker = program.getTypeChecker();
function processNode(node, file) {
if (utils.isCallExpression(node)) {
console.log('getting signature of node in file: ' + file.fileName) // <---
var signature = checker.getResolvedSignature(node);
Thanks for this template, I had a great time getting my existing map to work in here and I really enjoy w3ts.
However, now I reached a point where one change I made rendered the build unstable and permanently crashes the transpiling process. I cannot find the source of the issue here and the output does not help me find it either despite using
"sourceMapTraceback": true
in tsconfig.json.Is there any way I can find the statement / line / file that causes the transpiler to crash?
The feedback I get on the cli is the following by the way: