Closed pvormittag closed 9 years ago
One thing to try, can you edit http://localhost:8080/vendor/npm/marty/package.json#main to point to "dist/node/marty.js"?
Hey, I'm going to close this for now. Please re-open if you feel my comment hasn't fully answered your question
I'm attempting to use Marty on a large web app build, which uses JSPM / System.js for module loading. JSPM has no problem installing Marty, but System.js fails when attempting to import Marty.
A test case is creating a simple
app/module.js
file and attempting to import Marty within the module.Then making a simple html file:
The StackTrace output from Chrome is then:
I'm unsure if this issue is caused by Marty mixing syntax between CommonJS and ES6, or if es6-module-loader or System.js is not correctly handling a valid use case. I have JSPM configured to use Babel for ES6 transpiling and the system loads
react
andreact-router
without any issue.