首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流星应用程序不推到Heroku错误

流星应用程序不推到Heroku错误
EN

Stack Overflow用户
提问于 2015-05-20 17:48:31
回答 1查看 142关注 0票数 0

我构建了一个使用波旁scss库的Meteor应用程序。我试图将我的应用程序推送给heroku,但出错如下:

代码语言:javascript
复制
    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文件,尽管它们位于“我的客户/样式”文件夹中。有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-11 18:25:20

我也有同样的问题,最后去掉了流星-波旁,流星-纯,和流星-苦包,并增加了他们通过保尔。

添加这个圆顶流星包:mquandalle:bower

Bower init来获取您的bower.json (我只是将它放在目录的根目录中)并添加您的波旁/ it /bitters依赖项。不要像流星那样安装它们。如果您这样做了,只需删除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 .我希望它也适用于你!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30356893

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档