babel-plugin-angularjs-annotate icon indicating copy to clipboard operation
babel-plugin-angularjs-annotate copied to clipboard

Project with angular and vue code

Open arvins-wittymanager opened this issue 6 years ago • 0 comments

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?

arvins-wittymanager avatar Apr 12 '19 03:04 arvins-wittymanager