meteor-react-ionic-basic icon indicating copy to clipboard operation
meteor-react-ionic-basic copied to clipboard

Error running sample project

Open robertken opened this issue 10 years ago • 14 comments

I get this error when trying to run

EDIT: I have tried running more than once in a row as per the instructions. Its at a different port than 3000, if that matters

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

While building the application: /Users/me/myapp/client/styles/styles.scss:1: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/me/myapp/client/styles/

=> Your application has errors. Waiting for file change.

robertken avatar Sep 30 '15 18:09 robertken

Please read the article. This is covered. On Wed, Sep 30, 2015 at 11:12 slowsword [email protected] wrote:

I get this error when trying to run

=> Started proxy.

=> Started MongoDB.

=> Errors prevented startup:

While building the application: /Users/me/myapp/client/styles/styles.scss:1: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/me/myapp/client/styles/

=> Your application has errors. Waiting for file change.

— Reply to this email directly or view it on GitHub https://github.com/samcorcos/meteor-react-ionic-basic/issues/1.

samcorcos avatar Oct 01 '15 15:10 samcorcos

Thanks for the quick reply.

I did read it, and re-read it. I have started it 4 times in a row with same error. The meteoric sample has to be run twice and the same error clears. So I'm not exactly sure, maybe something to do with react?

robertken avatar Oct 01 '15 15:10 robertken

No, it should be fine. Are you running "meteor reset"?

On Thu, Oct 1, 2015 at 8:28 AM slowsword [email protected] wrote:

Thanks for the quick reply.

I did read it, and re-read it. I have started it 4 times in a row with same error. The meteoric sample has to be run twice and the same error clears. So I'm not exactly sure, maybe something to do with react?

— Reply to this email directly or view it on GitHub https://github.com/samcorcos/meteor-react-ionic-basic/issues/1#issuecomment-144762742 .

samcorcos avatar Oct 01 '15 15:10 samcorcos

I tried meteor reset, then re-running it and same thing. I did meteor update and i got this:

=> Errors while upgrading packages:

While reading package from /Users/me/Downloads/meteor-react-ionic-basic-master 11.28.37 AM/packages/npm-container: package.js:23:7: The isAsset option to addFiles is deprecated. Use PackageAPI#addAssets instead.

robertken avatar Oct 01 '15 15:10 robertken

Interesting. Looks like something in the 1.2 update might have broken it.

On Thu, Oct 1, 2015 at 8:57 AM slowsword [email protected] wrote:

I tried meteor reset, then re-running it and same thing. I did meteor update and i got this:

=> Errors while upgrading packages:

While reading package from /Users/me/Downloads/meteor-react-ionic-basic-master 11.28.37 AM/packages/npm-container: package.js:23:7: The isAsset option to addFiles is deprecated. Use PackageAPI#addAssets instead.

— Reply to this email directly or view it on GitHub https://github.com/samcorcos/meteor-react-ionic-basic/issues/1#issuecomment-144770940 .

samcorcos avatar Oct 01 '15 15:10 samcorcos

Hi, issue a PR to fix it. pls. check it out.

cp612sh avatar Oct 11 '15 07:10 cp612sh

Did someone get this to work? I'm a real beginner and don't know where to start.

raarts avatar Oct 29 '15 20:10 raarts

I would suggest checking out discovermeteor.com :) It's the best place to start for beginners.

On Thu, Oct 29, 2015 at 1:25 PM raarts [email protected] wrote:

Did someone get this to work? I'm a real beginner and don't know where to start.

— Reply to this email directly or view it on GitHub https://github.com/samcorcos/meteor-react-ionic-basic/issues/1#issuecomment-152308063 .

samcorcos avatar Oct 29 '15 20:10 samcorcos

Ok, maybe I'm not that much of a beginner.. done discovermeteor, and already wrote a tiny app using blaze and postgres-meteor, and dabbled in react, but now I'm ready for a more serious app. (I'm an experienced developer trying to do some front-end programming). Anyway, I think I now have two react packages installed, the meteor one and the node one. So, I'll retry and see how far I'll get. Thanks.

raarts avatar Oct 29 '15 20:10 raarts

Progress. Used the meteor-provided react (left out react from package.json). Got the same error, but commented out the import statements, re-ran meteor, and uncommented them again, and now the error is gone!

Getting another error now: W20151029-22:15:28.251(1)? (STDERR) Error: Cannot find module 'react/lib/invariant' W20151029-22:15:28.251(1)? (STDERR) at s (../../../cosmos_browserify/.0.8.1.17pd10p++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1) etc I have not been able to fix this one so far.

raarts avatar Oct 29 '15 21:10 raarts

@raarts I followed the same path as you it seems. I resolved the first point the same as you did. The reason is that there is no .meteor/local/build directory yet, so the imports raise an error. Probably the author added the ionic stuff after a first build was created.

The second issue I could resolve by one of the two following (I don't know which of the two, or maybe both resolved this):

  1. run meteor add cosmos:browserify explicitely (even though it is included in the meteor-provided react meta package
  2. run meteor reset

Hope this helps.

pors avatar Nov 16 '15 15:11 pors

@raarts @samcorcos I am stuck at Error: Cannot find module 'react/lib/invariant' . Were you guys able to figure out how to fix this ?

da-moon avatar Mar 20 '16 02:03 da-moon

No,

I dropped this, and moved on. I don't really see a future for meteor-ionic, because React Native. The world moves fast.

On Sun, Mar 20, 2016 at 3:49 AM, damoonazarpazhooh <[email protected]

wrote:

@raarts https://github.com/raarts @samcorcos https://github.com/samcorcos I am stuck at Error: Cannot find module 'react/lib/invariant' . Were you guys able to figure out how to fix this ?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/samcorcos/meteor-react-ionic-basic/issues/1#issuecomment-198836654

raarts avatar Mar 20 '16 08:03 raarts

@raarts with Meteor 1.3 things become a lot easier. Inspired by @samcorcos I created https://github.com/pors/reactionic/, an (almost) complete port of Meteoric. I believe there is still plenty of future for Meteor-Ionic :)

pors avatar Mar 20 '16 13:03 pors