Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project with angular and vue code #50

Open
arvins-wittymanager opened this issue Apr 12, 2019 · 0 comments
Open

Project with angular and vue code #50

arvins-wittymanager opened this issue Apr 12, 2019 · 0 comments

Comments

@arvins-wittymanager
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant