Open lc3t35 opened 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.
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';
I'm trying to deploy my App to scalingo but I'm getting this error and I can't deploy...
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.
@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
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.
I solved it moving both folders from the .meteor to the stylesheets folder
+1 serious limitation for deployment
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
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/
local/build directory is not created until you run your meteor app. Just run your app first then add import in your scss file.
Deleting those stylesheets was my workaround. I don't think Meteorhunt has been updated to Meteor 1.2 yet.
meteor add fourseven:scss solves the problem