Randomly getting codegen compilation warning/error

When adding a new script, Iā€™m just using the Rotate.ts example here), I get this warning in Unity which is preventing the codegen file from being generated:

Compilation failed, see log for more info: /Users/kerenmegory/Documents/_Hybrid/Personal/vps-challenge/Assets/../Temp/component-compiler.log
UnityEngine.Debug:LogWarning (object)
Needle.Engine.Codegen.ComponentGeneratorRunner/<Run>d__2:MoveNext () (at Library/PackageCache/com.needle.engine-exporter@3.5.9-pre/Core/Runtime/Codegen/ComponentGeneratorRunner.cs:88)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>:SetResult (bool)
Needle.Engine.Utils.ProcessHelper/<RunCommand>d__5:MoveNext () (at Library/PackageCache/com.needle.engine-exporter@3.5.9-pre/Common/Runtime/Utils/ProcessHelper.cs:275)
UnityEngine.UnitySynchronizationContext:ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

The component-compiler.log file is empty, so Iā€™m not sure how to decipher what could be causing the error.


Original Post on Discord

by user 690021744479830061

This might have to do with not having the correct node version in NeedleExporterSettings.asset

by user 690021744479830061

Which node version are you having installed? And which version of typescript? tsc --version