Я использую jspm
& Rollup
или SystemJS
строить свою WebAPP через: jspm build myFile dist/myFile.js --minify
myFile.js обнаружен как регистр, но не выполнять
Когда я пытаюсь загрузить myFile.js с SystemJS
<script src="/jspm_packages/system.src.js"></script>
<script src="/jspm.config.js"></script>
<script>
// `myFile` is mapped to npm:[email protected]
SystemJS.import('myFile').catch(function (e) {
console.log("Error with SystemJS.import myFile.js", e);
});
</script>
я получаю ошибку: myFile.js detected as register but didn't execute.
(SystemJS) http://localhost:3000/jspm_packages/npm/[email protected]/myFile.js detected as register but didn't execute. Error:
...(call stack)...
Error loading http://localhost:3000/jspm_packages/npm/[email protected]/myFile.js