Using the Browser Shim for the Foundation Browser for Applications

I am trying to thin out a user using a Foundation for Applications app that was recently added to npm (version 1.02). Since the npm package from base applications is not compatible, I decided to use"browserify-shim"

The difference between the bower component and the foundation package for npm applications is that the former comes with all dependencies (angular, ui.router, angular-animate, etc.), whereas the npm version with absolutely necessary stuff (foundation, components, etc.) services).

I installed angular and angular-animate from npm and sped them up (angular / angular-animate npm versions are also not in commonjs format). As far as ui.router is concerned, the npm package supports commonJS so there is no need for customization.

This is my .json package

and this is my main.js (application entry point)

Browserify successfully creates a bundle.js file that includes everything (foundation.core, components, services as well as angular, angular-ui-router and angular-animate) But with this message, the application cannot be instantiated:

Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:modulerr] Failed to instantiate module application due to:
Error: [$injector:modulerr] Failed to instantiate module foundation.dynamicRouting due to:
Error: [$injector:nomod] Module 'foundation.dynamicRouting' 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.
http://errors.angularjs.org/1.3.8/$injector/nomod?p0=foundation.dynamicRouting

      

Any ideas what might be? I suspect there is some kind of dependency that has not caught my attention, or maybe I messed up something in package.json

+3


source to share





All Articles