-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Early error on missing import #4
Comments
If main is set to preload in the manifest, then you will get an error during the build.
But, because then the body of main would execute on your computer instead of the device, you need to make the body a function:
FWIW - it is theoretically possible that the module "dep" could exist outside of the archive built on the computer, so your main would work on the device. The "dep" module would be installed separate on the device. We haven't completed this support yet, but it is under investigation. |
aha! I was just opening this as I spent more than 10 minutes trying to figure out what was going on. The explanation makes this seem sane. |
I was unable to figure out the full workflow of
xsl
to run it withoutmcconfig
quickly, but it seems to not give an error at compile/link time about missing a dependency:manifest.json
main.js
dep.js
Will compile "successfully" using
mcconfig -d -m -p mac
with the output:This error is hidden until runtime as seen in
xsbug
:The
.xsb
files contain enough information to provide an early error, but I am unclear onxsl
's internals to patch it to output such an error.The text was updated successfully, but these errors were encountered: