squidfunk / karma-viewport

A Karma plugin for testing responsive features and layout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No provider for "framework:viewport"!

Hosar opened this issue · comments

commented

"karma-viewport": "^0.4.1"

Getting: No provider for "framework:viewport"!, on angular 4 project.

Do I need to configure something else?

Can you post your karma configuration and the complete error output?

Closing due to inactivity. Please re-open if the problem still persists.

May be of use to some people:

I just got the same error message and found it was solved by adding 'karma-viewport' to the plugins array of my karma config object. Seemed pretty obvious to me in hindsight, but who knows, might help someone.

@dstuessy this fixed it for me too. This should be in the readme :)

@dstuessy, it fixed to me as well. Thanks a lot!