-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
SystemJS on Nashorm: TypeError: No environment baseURI #1113
Comments
Nashorn is not currently supported as an environment. The main environment hooks that need to be set up to get SystemJS to work are:
I'm more than happy to support Nashorn by wiring those in, and PRs are welcome, but it is not currently a development priority. |
thank you @guybedford |
This would need to be integrated in the module loader itself, eg by altering the fetch implementation at https://github.com/ModuleLoader/es6-module-loader/blob/master/src/system-fetch.js to have a scenario for Nashhorn. This is not currently implemented in SystemJS, but we can consider it or a possible Nashorn build. |
@guybedford In Nashorn, you can call Java classes form JavaScript. So we can imagine having a Java implementation of the JavaScript fetch API which we will then use in SystemJS. |
Closing, to rather track any work here on the ES6 Module Loader project repo. |
(see also #1112)
Hi,
I am having some trouble getting systemjs loading on the Java 8 Nashron engine.
Here is my setup:
Here are the steps to reproduce this issue:
system.js
in Nashorn:No environment baseURI
(Sorry for this long trace):The text was updated successfully, but these errors were encountered: