When there’s a TypeScript/JavaScript exception thrown, it points to the code in the built index.js
file. Is there any way to make it so it shows the file path in the TypeScript file instead?
Hello @KamilDev,
This is not possible as Nakama expects a single bundled JS file to be provided as the entrypoint, and so it does not have any knowledge on other source files.
Best.
Couldn’t Nakama support the usage of source maps? I believe that makes it possible for the compiled index.js
to tell where the code is defined in the TypeScript code?
It would greatly improve the development experience.
We’ll consider your suggestion and create an internal ticket for assessment, but as of now, this is not supported.
Best.