Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

After upgrade to 1.3: Packages not available anymore #113

Closed
dnish opened this issue Mar 28, 2016 · 6 comments
Closed

After upgrade to 1.3: Packages not available anymore #113

dnish opened this issue Mar 28, 2016 · 6 comments

Comments

@dnish
Copy link

dnish commented Mar 28, 2016

Hi,
I'm using Materialize as bower package in my application, after upgrading to 1.3 it seems that it isn't included anymore within my project, I get only exceptions that $(...).dropdown() isn't defined (it's a Materialize function). Everything worked fine with 1.2.1

Are there any changes in configuration to make it work?

@marcoscuevas
Copy link

Same here. After upgrading to Meteor 1.3 All the packages installed using meteor-bower are not available. In my case most of them are modules for angular and this is the message:

Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
Error: [$injector:nomod] Module 'ngCordova' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

If I remove the ngCordova injector from app.ng.js then the error message is the following bower package

Error: [$injector:modulerr] Failed to instantiate module jett.ionic.filter.bar due to:
Error: [$injector:nomod] Module 'jett.ionic.filter.bar' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

Not sure if the problem is related to another bower issue that provokes that "ignoredDependencies" does not work correctly and makes angular load twice...

@lorensr
Copy link
Collaborator

lorensr commented Mar 29, 2016

I think we'll be deprecating in favor of npm. If your package isn't
published there yet, you can copy or symlink the individual files you need
from .meteor/local/bower/* to eg vendor/*

On Tuesday, March 29, 2016, Marcos Cuevas [email protected] wrote:

Same here. After upgrading to Meteor 1.3 All the packages installed using
meteor-bower are not available. In my case most of them are modules for
angular and this is the message:

Error: [$injector:modulerr] Failed to instantiate module ngCordova due to:
Error: [$injector:nomod] Module 'ngCordova' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

If I remove the ngCordova injector from app.ng.js then the error message
is the following bower package

Error: [$injector:modulerr] Failed to instantiate module jett.ionic.filter.bar due to:
Error: [$injector:nomod] Module 'jett.ionic.filter.bar' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

Not sure if the problem is related to another bower issue that provokes
that "ignoredDependencies" does not work correctly and makes angular load
twice...


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#113 (comment)

@marcoscuevas
Copy link

Sorry @lorensr, I don't understand your answer and sorry again if I remake the question but I am using meteor-bower to install client side angular modules like ngCordova, angular-translate, etc.

After updating Meteor from 1.2.1 to 1.3 my app stopped working with the logs I CC.

My guess is that theres is something in the loading process in Meteor 1.3 update that prevents bower integrated libraries to load before the app.ng.js module does... but not sure.

@mquandalle
Copy link
Owner

Meteor 1.3 has a new build-in method to load JavaScript packages in your Meteor app, and it uses NPM. Because of that we have decided to deprecate this bower package. The build-in loader is way more robust (and officially supported by MDG) than this package.

Since the Meteor bundling system changed significantly I think we won’t work on a version of this package to support Meteor 1.3. That means that you will have to replace bower packages by NPM ones as part of the migration process from 1.2 to 1.3. If you don’t want to do that migration today, you could continue to use meteor-bower on Meteor 1.2 as of today.

@dnish
Copy link
Author

dnish commented Mar 29, 2016

Ah okay, thank you for the information.

@dnish dnish closed this as completed Mar 29, 2016
@marcoscuevas
Copy link

Thank you @mquandalle and @lorensr. Now I understand!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants