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
When I run 'run main.ts' in terminal, it works as intended (well, almost, I'm still working on my code),
But when I run 'run main.ts' in terminal again, script just fails silently after certain step.
After the first run, script editor pretends that my imports in main.ts are invalid. But if I change something unimportant in imported scripts and save them, script editor is satisfied.
If I edit and re-save all involved files, I could run main.ts as intended again.
Looks like there's some problem with ts transpiling or something like that.
The text was updated successfully, but these errors were encountered:
Siri0n
changed the title
Typescript bug (probably somethong with imports?)
Typescript bug (probably something with imports and ts transpiling?)
Dec 15, 2024
Oh. I think I understood. Script editor bug is independent of my module execution bug. Modules are persistent, and I save outdated ns object in jobRunner.ns.
Also, if modules are persistent, I don't need to communicate through ports, and my clever system is overengineered.
bitburnerSave_1734235243_BN1x1.json.gz
My game version is v2.7.0 (Steam)
When I run 'run main.ts' in terminal, it works as intended (well, almost, I'm still working on my code),
But when I run 'run main.ts' in terminal again, script just fails silently after certain step.
After the first run, script editor pretends that my imports in main.ts are invalid. But if I change something unimportant in imported scripts and save them, script editor is satisfied.
If I edit and re-save all involved files, I could run main.ts as intended again.
Looks like there's some problem with ts transpiling or something like that.
The text was updated successfully, but these errors were encountered: