我在this instructions之后安装了Materialise-Bridge。当我运行au build
时,它表示无法找到index.js
。项目确实成功运行,直到我添加了Materialise Bridge。
我有两个问题:
index.js
文件的路径(当前路径无效 - 我的node_modules位于SOMETHING_ELSE/node_modules
而不是SOMETHING_ELSE/src/node_modules
)找不到index.js
文件的jquery(它不在node_modules/jquery
)
Starting 'readProjectConfiguration'...
Unable to analyze jquery
[Error: The "jquery" package references a main file that does not exist: /PATH/TO/SOMETHING/SOMETHING_ELSE/src/node_modules/jquery/index.js]
{ uid: 1,
name: 'readProjectConfiguration',
branch: false,
error: [Error: The "jquery" package references a main file that does not exist: /PATH/TO/SOMETHING/SOMETHING_ELSE/src/node_modules/jquery/index.js],
duration: [ 0, 10966665 ],
time: 1500372612034 }
{ uid: 0,
name: '<series>',
branch: true,
error: [Error: The "jquery" package references a main file that does not exist: /PATH/TO/SOMETHING/SOMETHING_ELSE/src/node_modules/jquery/index.js],
duration: [ 0, 23847781 ],
time: 1500372612046 }
[Error: The "jquery" package references a main file that does not exist: /PATH/TO/SOMETHING/SOMETHING_ELSE/src/node_modules/jquery/index.js]
我在哪里可以更改index.js
文件的路径以及该文件的位置?我希望我很清楚,如果没有,请询问更多信息。感谢
答案 0 :(得分:0)
我在aurelia.json
中遇到了问题。 "path": "../node_modules/materialize-css/dist
“设置不正确。