vgstation13
vgstation13 copied to clipboard
build.bat compiles DM fine but fails on some tgui task
Description of issue
Building from VScode using build.bat as the build task, building the tgui package fails. It will successfully compile a .dmb anyway, but I don't think this thing should be failing. I feel like this should have a really simple solution but I don't know what it means by "running an install in tgui".
Logs
* Executing task: E:\vgstation13\tools\build\build.bat
Using vendored Node v16.13.1
:: Juke Build version 0.8.1
=> Starting 'dm'
:: Skipping 'yarn' (up to date)
:: Using defines: CBT
=> Starting 'tgui'
DM compiler version 515.1620
loading vgstation13.m.dme
Usage Error: The project in E:\vgstation13\tgui\package.json doesn't seem to have been installed - running an install there might help
$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] <scriptName> ...
=> Target 'tgui' failed in 0.406s, exit code: 1
loading interface/web/info.dms
loading interface/web/interface.dms
loading interface/skin.dmf
loading maps/tgstation.dmm
saving vgstation13.m.dmb (DEBUG mode)
vgstation13.m.dmb - 0 errors, 0 warnings (3/7/24 5:52 am)
Total time: 0:16
=> Finished 'dm' in 16.594s
=> Target 'build' failed
* The terminal process "E:\vgstation13\tools\build\build.bat" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it. `
It's based off of TG's codebase so it's going to fail on our end.
It's based off of TG's codebase so it's going to fail on our end.
Couldn't tell you why, but now it's magically working for me so this isn't true.
* Executing task: E:\vgstation13\tools\build\build.bat
Using vendored Node v16.13.1
:: Juke Build version 0.8.1
=> Starting 'dm'
=> Starting 'yarn'
:: Using defines: CBT
DM compiler version 515.1620
loading vgstation13.m.dme
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
loading interface/web/info.dms
loading interface/web/interface.dms
loading interface/skin.dmf
loading maps/tgstation.dmm
saving vgstation13.m.dmb (DEBUG mode)
➤ YN0013: │ 926 packages were already cached, 2 had to be fetched
➤ YN0019: │ follow-redirects-npm-1.15.4-3384d6a415-e178d1deff.zip appeared to be unused and was removed
➤ YN0000: └ Completed in 19s 200ms
➤ YN0000: ┌ Link step
vgstation13.m.dmb - 0 errors, 0 warnings (3/21/24 7:56 pm)
Total time: 0:20
=> Finished 'dm' in 20.409s
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed in 0s 792ms
➤ YN0000: Done with warnings in 20s 244ms
=> Finished 'yarn' in 20.675s
=> Starting 'tgui'
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
assets by path *.js 785 KiB
asset tgui-panel.bundle.js 408 KiB [compared for emit] [minimized] (name: tgui-panel)
asset tgui.bundle.js 377 KiB [compared for emit] [minimized] (name: tgui)
assets by path *.css 299 KiB
asset tgui.bundle.css 208 KiB [compared for emit] (name: tgui)
asset tgui-panel.bundle.css 91.6 KiB [compared for emit] (name: tgui-panel)
Entrypoint tgui 585 KiB = tgui.bundle.css 208 KiB tgui.bundle.js 377 KiB
Entrypoint tgui-panel 500 KiB = tgui-panel.bundle.css 91.6 KiB tgui-panel.bundle.js 408 KiB
2024-03-21 19:56:22: webpack 5.76.1 compiled successfully in 8313 ms
=> Finished 'tgui' in 10.553s
=> Done in 32.082s
Thinking back on it, I'm pretty sure I fixed this by deleting the cached packages from tgui/yarn and then using the build script again so it re-fetched them. Gonna close this.