meteoric / meteorhunt

A Product Hunt clone built using meteor-ionic.
http://meteorhunt.meteor.com
MIT License
140 stars 40 forks source link

Missing fourseven:scss #12

Open lc3t35 opened 9 years ago

lc3t35 commented 9 years ago
=> Errors prevented startup:                  

   While building the application:

   /Users/****/meteorhunt/client/stylesheets/app.scss:6:9:
   Scss compiler error: file to import not found or unreadable:
   .meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/ionic
   Current dir:
   /Users/****meteorhunt/client/stylesheets/

meteor add fourseven:scss solves the problem

mountainash commented 9 years ago

With the latest update to Meteor 1.0.4. it seems to have solved this issue. I've run meteor remove fourseven:scss, rebuilt it and it's displaying nicely.

kaushik1979 commented 9 years ago

The import paths are wrong. If you navigate to the .meteor/.../ directory, the scss files start with _. Replace your imports with the following and it should work.

@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/_ionic'; @import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/_ionicons';

Poliuk commented 9 years ago

I'm trying to deploy my App to scalingo but I'm getting this error and I can't deploy...

dcsan commented 9 years ago

With the latest update to Meteor 1.0.4. it seems to have solved this issue. I've run meteor remove fourseven:scss, rebuilt it and it's displaying nicely

@mountainash is this actually true? i still get this error locally every time i reset my project clean, which is not a good sign at all for deployment.

adamdawkins commented 9 years ago

@dcsan @Poliuk I'm having a problem with deployment (using mup) with this. Even after updating the import statements to @kaushik1979 's recommendation.

I don't think it's to do with the inclusion/exclusion of fourseven:scss at all, I think it's because that .meteor/local/build directory doesn't exist until you've run meteor; but the error occurs during bundling.

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

Building Started: .
Error while building for mobile platforms: Errors prevented bundling:
While building the application:

Scss compiler error: file to import not found or unreadable:
.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/_ionic
adamdawkins commented 9 years ago

Ok @Poliuk, I've solved this for deployment I think.

Under the compiler error, it mentioned the current directory:

Current dir: /Users/.../.../meteorhunt/client/stylesheets/

The .meteor folder doesn't exist relative to this folder. I changed the SCSS to:

// Ionic
@import '../../.meteor/local/build/programs/server/assets/packages/meteoric_ionic-sass/_ionic';
@import '../../.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/_ionicons';

with relative paths at the start, and @kaushik1979's note about the _, and success.

Poliuk commented 9 years ago

I solved it moving both folders from the .meteor to the stylesheets folder

screen shot 2015-06-16 at 12 28 46

bgrayburn commented 9 years ago

+1 serious limitation for deployment

nicholasalanbrown commented 9 years ago

This still isn't fixed and fails on deployment - would it be better to import these files from the Ionic CDN? I was only able to fix it by copying the files into my client code and importing them from there instead

dcsan commented 9 years ago

this seems to be broken again with meteor 1.2, even after restarting the app multiple times.

$ meteor
[[[[[ ~/dev/rikai/mewechat/app ]]]]]          

=> Started proxy.                             
=> Started MongoDB.                           
=> Errors prevented startup:                  

   While building the application:
   /Users/dc/dev/rikai/mewechat/app/client/css/main.scss:1:9: Scss compiler error: file to import not found or unreadable:
   .meteor/local/build/programs/server/assets/packages/reywood_bootstrap3-sass/bootstrap
   Current dir: /Users/dc/dev/rikai/mewechat/app/client/css/
zayau commented 9 years ago

local/build directory is not created until you run your meteor app. Just run your app first then add import in your scss file.

MichaelJCole commented 9 years ago

Deleting those stylesheets was my workaround. I don't think Meteorhunt has been updated to Meteor 1.2 yet.