Closed es6Test closed 9 years ago
Try loading es6-module-loader-dev.js
file instead of es6-module-loader.js
.
thanks but now I get:
`Failed to load resource: the server responded with a status of 404 (Not Found) index.html:1 Uncaught (in promise) Error: XHR error (404 Not Found) loading http://localhost:63342/foo )```
however it does resolve if
import foo from './foo.js'
instead of
import foo from './foo'
is this expected with es6?
I couldn't get rid of errors using es6-module-loader, but using babel (with gulp) + browserify, i can import files without adding the extension (maybe it's due to babel converting "import" to "require" in common js).
But as far as i remember, the last spec concerning es6 modules say that we have to include the extension to import / System.import js files.
I am getting this error when I run my webapp:
Uncaught (in promise) Error: ES6 transpilation is only provided in the dev module loader build.
I am trying to use the module loader like so:
main.js
I have the following dependencies
Any ideas?