Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

angular-validation is not found by browserify #128

Description

@jsmarsch

If you use browserify to concatenate your js files and to make them work as modules, the angular-validation js file is never picked up.

As a result, angular's DI err's with this message:

Failed to instantiate module ghiscoding.validation due to:
Error: [$injector:nomod] Module 'ghiscoding.validation' 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.

(this is because angular-validation.min.js is never added to the concatenated .js file)

The problem is in the package.json file in the angular-validation node_modules folder. "Main" should reference "dist/angular-validation.min.js", instead of app.js (I did find the app.js file concatenated in my output)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions