Closed JasonLandbridge closed 2 years ago
This is an issue with TypescriptToLua, you can find more details here (and maybe give it an upvote): https://github.com/TypeScriptToLua/TypeScriptToLua/issues/1152
For a workaround, either extract "__gvv__.gvv"
to a local variable before passing it to require, or change it to "@NoResolution:__gvv__.gvv"
It worked, thank you so much!
Upvoted the thread as well 👍
Hi there,
First of all, huge thank you for all the work you have been doing for typed-factorio!
I'm currently developing a mod which I would like to debug by using: https://mods.factorio.com/mod/gvv
The mod requires the use of the following lua snippet:
I have been struggeling but so far I have managed to get it working by doing the following:
This works and I am able to use GVV succesfully. However I keep receiving the following error in the console of my IDE
error TSTL: Could not resolve lua source files for require path '__gvv__.gvv' in file debug.lua.
Am I importing it wrong or is there a different way to translate the Lua snippet to Typescript?
Very much thank you in advance!