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

Cant load styles in vue template, when shadow mode is on #27

Closed
rikser123 opened this issue Aug 6, 2018 · 1 comment
Closed

Cant load styles in vue template, when shadow mode is on #27

rikser123 opened this issue Aug 6, 2018 · 1 comment

Comments

@rikser123
Copy link

Hello. For some part of my vue single file components I use vue-webcomponent-wrap, and in this case style loader load styles perfectly. But for usual vue templates without webcomponents-wrap I have error ""TypeError: Cannot read property '_injectedStyles' of undefined"";

When I switche style loader shadow mode to false, usual templates load styles, but webcomponents have error.

is there any way to load style in both cases: for usual vue templates and for webcomponents?

@yyx990803
Copy link
Member

This option is specifically designed to work with the wc wrapper, and should only be used during build. You will need to use different values based on whether you are using wc wrapper or not.

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

2 participants