Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Meteor 1.3 System js #2

Closed
Markusxmr opened this issue Jan 12, 2016 · 12 comments
Closed

Meteor 1.3 System js #2

Markusxmr opened this issue Jan 12, 2016 · 12 comments

Comments

@Markusxmr
Copy link

Greetings,
I was wandering, since Meteor recently introduced ES2015 module support, would it be practical to use systemjs installed directly from npm within a meteor app, since it is now possible. Thus, for example Meteor-Aurelia could have a more "standard" usage?

@TsumiNa
Copy link
Owner

TsumiNa commented Jan 12, 2016

Yes, I know here is a issue with systemjs. also since 1.3 we can use module loader and npm modules directly.

I'm checking but need more times 🙇

if everything by use npm installation works great. I will close this package 😄

@Markusxmr
Copy link
Author

✌️

@stphdenis
Copy link

It is due to an incompatibility between meteor v1.3 and systemjs as shown here meteor/meteor#6046 and I made a pull request for a patch in systemjs there systemjs/systemjs#980

@TsumiNa
Copy link
Owner

TsumiNa commented Jan 20, 2016

@stphdenis thank you! this troubled me a lot but i don't know a lot about systemjs. keep tracking this

@stphdenis
Copy link

The commits were done in the systemejs project.
Could you give us a new release of TsumiNa/meteor-systemjs ?

@TsumiNa
Copy link
Owner

TsumiNa commented Jan 25, 2016

@stphdenis Yes,I will do it as soon as possible.

@TsumiNa
Copy link
Owner

TsumiNa commented Jan 25, 2016

@stphdenis There is another issue with systemjs@>0.19.9. It will cause a Cross origin requests error.

XMLHttpRequest cannot load npm://aurelia-bootstrapper@1.0.0-beta.1.0.2/aurelia-bootstrapper.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

I updated this repo to use systemjs@0.19.17 so you can clone it and repr it locally.

@TsumiNa
Copy link
Owner

TsumiNa commented Jan 27, 2016

@Markusxmr I tried to use aurelia directly from node_modules. Because of the needed of load _.html files, there must be a plugin to handle how to do it. either systemjs or webpack will use a syntax like _.html!text to invoke a loader plugin but not in meteor. So this package will continue to update.

@Markusxmr
Copy link
Author

Yes, sir.
Ok, appreciated. Will close the issue for now.

@stphdenis
Copy link

To use aurelia directly from node_modules, there is a new module there sdenis:aurelia. It explains how to do with the new native Meteor Aurelia loader.

@Markusxmr
Copy link
Author

@stphdenis nice one. will check it out. How was it working for you?

@ninzy3
Copy link

ninzy3 commented Aug 12, 2016

@TsumiNa

How did you updated systemjs@0.19.17. My current version is systemjs@0.19.36. I am getting the same error as

system.src.js:1057XMLHttpRequest cannot load file:///D:/Aurelia%20Program/minimal/jspm_packages/npm/aurelia-bootstrapper@1.0.0.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants