JQuery包引用一个不存在的主文件? Aurelia,CLI,Materialise-Bridge

时间:2017-07-18 10:36:25

标签: command-line-interface aurelia materialize aurelia-cli

我在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文件的路径以及该文件的位置?我希望我很清楚,如果没有,请询​​问更多信息。感谢

1 个答案:

答案 0 :(得分:0)

我在aurelia.json中遇到了问题。 "path": "../node_modules/materialize-css/dist“设置不正确。