JQuery 包引用了一个不存在的主文件? Aurelia、CLI、Materialise-Bridge
JQuery package reference a main file that does not exist? Aurelia, CLI, Materialize-Bridge
我在 this instructions 之后安装了 Materialise-Bridge。当我 运行 au build
它说找不到 index.js
。在我添加 Materialise Bridge 之前,项目 运行 成功。
我有两个问题:
- 不知道在哪里可以编辑搜索
index.js
文件的路径(当前路径无效 -- 我的 node_modules 位于 SOMETHING_ELSE/node_modules
而不是 SOMETHING_ELSE/src/node_modules
)
无法找到 jquery 的 index.js
文件(它不在 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
文件的路径以及该文件应该位于何处? 希望我说得足够清楚,如果不清楚,请询问更多信息。谢谢
我在 aurelia.json
中遇到了问题。 "path": "../node_modules/materialize-css/dist
" 设置不正确。
我在 this instructions 之后安装了 Materialise-Bridge。当我 运行 au build
它说找不到 index.js
。在我添加 Materialise Bridge 之前,项目 运行 成功。
我有两个问题:
- 不知道在哪里可以编辑搜索
index.js
文件的路径(当前路径无效 -- 我的 node_modules 位于SOMETHING_ELSE/node_modules
而不是SOMETHING_ELSE/src/node_modules
) 无法找到 jquery 的
index.js
文件(它不在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
文件的路径以及该文件应该位于何处? 希望我说得足够清楚,如果不清楚,请询问更多信息。谢谢
我在 aurelia.json
中遇到了问题。 "path": "../node_modules/materialize-css/dist
" 设置不正确。