Crash when trying to build Gdevelop.js
mehrabsha opened this issue · 2 comments
mehrabsha commented
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I faced this error when I was trying to build GDevelop.js
Running "shell:generateFlowTypes" (shell) task
info: Sourcing gdevelopjs-cleaned-bindings-idl0JHegX\Bindings.idl
✅ Properly generated GDevelop.js types.
Running "shell:generateTSTypes" (shell) task
file:///E:/GDevelop/GDevelop.js/scripts/generate-dts.mjs:145
throw new Error("Never reached character '${thisCharacter}'!");
^
Error: Never reached character ' '!
at Parser.readUntil (file:///E:/GDevelop/GDevelop.js/scripts/generate-dts.mjs:145:15)
at Parser.readType (file:///E:/GDevelop/GDevelop.js/scripts/generate-dts.mjs:166:21)
at file:///E:/GDevelop/GDevelop.js/scripts/generate-dts.mjs:253:16
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.12.2
Steps to reproduce
based on README.md
- install all prerequisite tools (node - python - cmake) on windows
- install and activate emsdk v3.1.21
- go to GDevelop.js folder with the emscripten environements
npm install
andnpm run build
- ERROR
GDevelop platform
Desktop
GDevelop version
5.4.218
Platform info
Win11
Additional context
No response
mehrabsha commented
Any solution?
4ian commented
Not sure why this is happening on Windows but for now you can comment this line to unblock you:
GDevelop/GDevelop.js/Gruntfile.js
Line 186 in 22c7215