lune
lune copied to clipboard
unable to find `.luaurc` if `.luaurc` contains invalid JSON syntax
Context
Writing this after I raised an initial discussion in the OSS Discord here
Issue
The error failed to find alias '{alias}' (no .luaurc) presents itself and can confuse the consumer if the .luaurc file itself has invalid syntax, for instance - if someone tries to add comments into JSON.
Solution
Ideally, an alternative error is shown, something along the lines of .luaurc contains invalid JSON syntax, ln X
Removing this from the milestone for now - the native Luau require library should fix this better than we can and it is not really worth messing with our own custom require implementation when it will be completely replaced soon.
This has been fixed in Lune 0.10 - if you find the error messages confusing or similar issues, this should be reported to Luau repo itself