2017-06-03 85 views
2

加载模块SystemJS不是从我使用SystemJS加载一个简单的JavaScript文件node_modules

<script>require("systemjs")</script> 
<script> 
    SystemJS.import('./dist/app.js').then(null, console.error.bind(console)); 
</script> 

但我得到一个错误时,我在电子运行:

GET file:///D:/Projects/myapp/app/jquery net::ERR_FILE_NOT_FOUND

为什么SystemJS不是0寻找的jQuery像任何其他理智的JavaScript加载程序?我怎样才能看到它?

回答

0

原来的问题是,如此生成的文件包含的代码为不同的模块,我的编译器没有检测到的变化呢。它仍然不能正常工作,我希望它太的方式,但至少它没有示数:/