Open parallaxisjones opened 8 years ago
Curious what happens when you remove the first line to:
//require('angular')
require('angular-simple-logger')
require('ui-leaflet')
require('angular-cookies')
require('angular-storage/dist/angular-storage.min.js')
require('angular-modal-service')
require('ng-file-upload')
require('angular-ui-router')
require('angular-aria')
require('angular-animate')
require('angular-material')
require('angular-material-icons')
require('lodash')
require('leaflet')
require('uuid')
var $ = require('jquery');
require('materialize');
require('./app').inject(angular)
Hi,
This issue is due to the following line in angular-simple-logger/dist/index.js line 9 :
var angular = require('angular');
So in Webpack build, AngularJS is loaded twice.
It will better to use IIFE declaration same as in index.light.js (without require('angular')). Why not use index.light.js for main property in package.json ? Moreover it seams pretty the same.
Example : https://github.com/Reeska/angular-simple-logger/commit/6e5223ff362300686e6449297f9b85008aaa3648
Yeah I need to use rollup.js and fix angular-simple-logger. Thanks for the reminder.
not sure exactly even where to start on this one.... anyone?
When including ui-leaflet & angular-simple-logger in my project using browserify I get this error: WARNING: Tried to load angular more than once.
my index.js file
packages.json file