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

Error: No matching bindings found for serviceIdentifier: Symbol() #25

Closed
DoDoSt opened this issue May 23, 2020 · 7 comments
Closed

Error: No matching bindings found for serviceIdentifier: Symbol() #25

DoDoSt opened this issue May 23, 2020 · 7 comments

Comments

@DoDoSt
Copy link

DoDoSt commented May 23, 2020

In production build I get the following error with injecting a service in a Vue component
vue.runtime.esm.js:1888 Error: No matching bindings found for serviceIdentifier: Symbol(TestService).

In dev build everything works.

Production build with:
vue-cli-service build

Dev build with:
vue-cli-service serve or vue-cli-service build --mode development

I made a simple project to show my issue:

TestVueProject.zip

@CKGrafico
Copy link
Owner

@DoDoSt
Copy link
Author

DoDoSt commented May 26, 2020

Good idea! I didn't think about that the class names would be changed during productive construction. Thanks for the hint.

@DoDoSt DoDoSt closed this as completed May 26, 2020
@CKGrafico
Copy link
Owner

Sorry probably is not well documented, I accept suggestions

@NavidMitchell
Copy link

I am having this problem after upgrading to 2.2.6 from 1.4.9. It seems to only happen if I inject more than one dependency into a vue component. If I down grade to 1.4.9 everything works as expected.

@CKGrafico
Copy link
Owner

Are you decorating your classes with @Injectable? because is not required anymore

@NavidMitchell
Copy link

I was initially but I saw the other issue about that so I removed injectable from all of my classes and still was getting the same error.

@CKGrafico
Copy link
Owner

Can you share a sandbox to reproduce?

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

3 participants