mquandalle / meteor-bower

[DEPRECATED] Use bower packages in your Meteor app
http://bower.io/search/
MIT License
157 stars 28 forks source link

Can't find dependencies modules anymore meteor 1.2 #114

Closed johhansantana closed 8 years ago

johhansantana commented 8 years ago

My app is working normally when I'm developing locally, I've tried meteor reset and everything still works well.

When I upload it with mupx or even in heroku it gives me errors that modules are not available and such.

screenshot from 2016-09-09 13 18 50

This is my bower.json file:

{
  "name": "blueSoft",
  "version": "0.0.0",
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    ".meteor/local/bower",
    "test",
    "tests"
  ],
  "dependencies": {
    "angular-credit-cards": "~2.3.5",
    "angular-chart.js": "~0.8.8",
    "ng-file-upload": "^12.0.4",
    "datatables.net": "^1.10.11",
    "fullcalendar": "^2.6.1",
    "datatables.net-dt": "^1.10.11",
    "angular-google-maps": "^2.3.4",
    "angular-material-data-table": "^0.10.9"
  },
  "overrides": {
    "angular": {
      "main": []
    }
  },
  "resolutions": {
    "angular": "^1.4.0"
  }
}

Here's my lib/app.ng.js file


angular.module('blueSoftApp', [
  'angular-meteor',
  'ui.router',
  'ngMaterial',
  'md.data.table',
  'ui.calendar',
  'ngMessages',
  'countTo',
  'chart.js',
  'angularUtils.directives.dirPagination',
  'credit-cards',
  'ngFileUpload',
  'ngMaterialDatePicker',
  'uiGmapgoogle-maps'
])

onReady = function() {
  angular.bootstrap(document, ['blueSoftApp']);
};

if(Meteor.isCordova) {
  angular.element(document).on('deviceready', onReady);
} else {
  angular.element(document).ready(onReady);
}

I can't seem to figure out what's going on :(

lorensr commented 8 years ago

Sorry, I don't know why it would stop working in production 😕 If you can't figure it out, options are copying the library files into your project (eg vendor/) or upgrading meteor version and using npm (more maintainable)

johhansantana commented 8 years ago

Hi @lorensr it was an issue with the google maps package. Seems like the bower version of that package is outdated. I was able to install the atmosphere package and everything seems to be working correctly now.