【发布时间】:2016-09-29 09:46:33
【问题描述】:
当我直接从 file:///C:/wamp/www/ngProject/index.html 或 wamp 运行时,我无法通过 boot.js 文件:http://localhost/ngproject/
在开发模式下,它适用于npm-start,但它不应该适用于 WAMP 还是只运行 Index.html?
这是我的 system.js
<script>
System.config({
packages: {
app: {
format: 'register',
defaultExtension: 'js'
}
}
});
System.import('app/boot')
.then(null, console.error.bind(console));
</script>
从 wamp 启动时 - 错误:无法加载脚本 http://localhost/app/boot.js 加载时出错 http://localhost/app/boot.js
启动 Index.html 时 - 错误:无法加载脚本文件:///app/boot.js
加载文件时出错:///app/boot.js
【问题讨论】:
-
您是否尝试过检查控制台是否有错误..??
-
是的,我编辑了错误的帖子。
标签: angular