2017-07-18 39 views
0

我按照this instructions安裝了Materialise-Bridge。當我運行au build它說它找不到index.js。項目確實運行成功,直到我添加了Materialise Bridge。JQuery包引用一個不存在的主文件? Aurelia,CLI,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

這很奇怪,jQuery不應該要求'index.js'配置,因爲它的package.json配置指向'dist/jquery.js' ..實際上,jquery是否存在於node_modules中? jquery的'package.json'對'main'說什麼? – Daniel

回答

0

我在aurelia.json有一個問題。 "path": "../node_modules/materialize-css/dist「設置不正確

相關問題