2015-05-20 74 views
0

我構建了一個使用波旁scss庫的Meteor應用。我試圖把我的應用程序的Heroku得到了以下錯誤:流星應用不推向Heroku錯誤

Errors prevented bundling: 
    While building the application: 
    client/styles/bullets.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/bullets.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/comments.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/main.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/hero.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/hero.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/home.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/home.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/hover.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/main.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/navigation.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/main.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/registration.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/registration.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    client/styles/main.scss: Scss compiler error: undefined 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/main.scss:1: 
    file to import not found or unreadable: "bourbon/bourbon" 
    Current dir: 
    /tmp/build_52129b38b75a2e6238de86ec866d89cf/mauvsa-gala-9a1eb00877caedf4b5202f30825b1627fb75f874/client/styles/ 
    !  Push rejected, failed to compile Node.js app 

顯然,這不是能夠找到SCSS文件,儘管它們在我的客戶端/風格的文件夾。有人可以幫忙嗎?

回答

1

我遇到了同樣的問題,最後取消了流星波旁,流星雨和流星苦味藥包,並通過涼亭添加它們。

添加這個亭子流星包:mquandalle:bower

Bower init讓你bower.json(我只是把它放在根目錄),並添加您的波旁/整齊/苦味的依賴。不要涼亭安裝他們自動流星。如果你這樣做,只需刪除bower_components文件夾。

bower.json底:

"dependencies": { "bourbon": "4.2.1", "neat": "1.7.2", "bitters": "1.0.0" }

然後從他們的位置在/.meteor/local/導入文件。舉例來說,在我的main.scss我:

@import "./.meteor/local/bower/bourbon/app/assets/stylesheets/bourbon"; @import "./.meteor/local/bower/neat/app/assets/stylesheets/neat"; @import "./.meteor/local/bower/bitters/app/assets/stylesheets/base";

然後,我能推到Heroku的成功...我希望它爲你的作品呢!