Skip to content

Project with angular and vue code #50

Description

@arvins-wittymanager

I was having problems with running npm run prod because angular wouldn't load the minified functions correctly and logging this error:

Error: [$injector:modulerr] Failed to instantiate module app due to: [$injector:modulerr] Failed to instantiate module app.config due to: [$injector:unpr] Unknown provider: e http://errors.angularjs.org/1.5.8/$injector/unpr?p0=e t

Resolved it by adding angularjs-annotate to .babelrc plugin:

"plugins": [
    "transform-vue-jsx",
    "syntax-dynamic-import",
    "angularjs-annotate"
  ]

However, as a result of this fix, I started getting error TypeError: "e._f(...) is not a function", which is related to global vue filters Vue.filter(...).

Is there any way to get the plugin angularjs-annotate to work on angular code only, ignoring my vue code?

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