我对缺乏细节表示歉意..但这是有点什么问题...我有一个非常困难的时间搞清楚如何去关于排除故障。aurelia-cli:au install - 无法加载软件包/ js文件 - 404
有很多这个问题的例子,我不知道如何解决。我挂枝在github上repositort:
- 引导材料设计(6d6e439)
- leaflet.markercluster(https://github.com/diegohb/aurelia-leaflet-cluster/tree/master-task006)
- 奥里利亚小叶(https://github.com/diegohb/aurelia-leaflet-cluster/tree/master-task005)
我环境:
- 节点v6.10.2
- NPM V4.2.0
- 奥里利亚-CLI v0.30.1
- 最新版本的Chrome
我试着看捆绑供应商bundle.js ..证实了定义()语句那里。我已经尝试在Chrome开发工具中使用SystemJS api来查看配置中的内容,但是我无法真正理解所看到的内容..我在配置中看不到任何对vendor-bundle.js的引用。只有app-bundle.js。
在所有情况下,我都会在〜/ package_name处获得指定软件包的404s。我非常感谢主要在#2 - leaflet.markercluster软件包上的任何帮助或指示。
摄制#1(材料设计) --watch ..在页面加载,使用最新的Chrome ...我收到错误运行6d6e439与非盟运行:
Unhandled rejection Error: Fetch error: 404 Not Found Instantiating http://localhost:9000/bootstrap-material-design/scripts/material.js
Loading http://localhost:9000/bootstrap-material-design/scripts/index Loading http://localhost:9000/bootstrap-material-design Loading http://localhost:9000/app Loading http://localhost:9000/app at http://localhost:9000/scripts/vendor-bundle.js:3788:10911
参考: - https://github.com/aurelia/cli/issues/676 - https://github.com/aurelia/cli/issues/684
#2 添加在aurelia.json以下导致错误“L不脱罚款”,这点早在leaflet.js排队35:
{
"name": "leaflet.markercluster",
"main": "",
"path": "../node_modules/leaflet.markercluster/dist",
"resources": [
"leaflet.markercluster.js",
"MarkerCluster.css",
"MarkerCluster.Default.css"
],
"deps": ["leaflet"]
}
见提交0f9cf0e。
#3 这似乎是由于这个包过时的代码......错误是“aurelia.globalizeResources是不是一个函数”
是否有关于如何解决SystemJS问题的任何文档?
谢谢!
我检出了第一个分支(master-task002),一切正常。我做了一个结帐,'npm i','au build','au run'。应用程序可在localhost:9000 w/o任何错误。你能写下你的步骤来重现错误吗? –
@MarcScheib - 我添加了repro步骤..我没有看到任何东西像你在分支task002上描述的那样加载。 任何帮助或解决方法,让我现在开始使用aurelia-cli,而错误的制定出来,将不胜感激。 – diegohb