Doridian / LuaJS

Lua VM running in Javascript (using emscripten)
Other
55 stars 10 forks source link

Module not found: Error: Can't resolve './' #66

Open nmsderp opened 6 months ago

nmsderp commented 6 months ago

there is this react app at https://github.com/Bismuthium/Lunar but our gh workflow fails when it gets to LuaJS

Run yarn build
yarn run v1.22.22
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve './' in '/home/runner/work/Lunar/Lunar/node_modules/@doridian/luajs/dist'

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
Doridian commented 6 months ago

@nmsderp Looking at your repo, I see no build failures, but also no usage of LuaJS? Is that build error on a branch or fork so I can try to reproduce it locally?

nmsderp commented 6 months ago

we decided to remove luajs here is an old commit so you could fix the issue for future uses https://github.com/Bismuthium/Lunar/tree/13413c985bced518a17e5b9a9472e888c6a4431e

nmsderp commented 6 months ago

also it works fine locally, which is strange

Doridian commented 6 months ago

@nmsderp It shows this error for me locally as well. Sadly so far I had no luck finding the cause, let alone fixing the problem.