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

__inject__ is not a function #57

Open
RaphBensimon opened this issue Sep 5, 2021 · 0 comments
Open

__inject__ is not a function #57

RaphBensimon opened this issue Sep 5, 2021 · 0 comments

Comments

@RaphBensimon
Copy link

Hi, it's my first time i use vue-style-loader and i got this error

_styles_components_FormGroup_css__WEBPACK_IMPORTED_MODULE_1___default.a.__inject__ is not a function

This is my code

import FormGroup from './components/formGroup/FormGroup.vue'
import FormGroupStyle from './styles/components/FormGroup.css'
export default  {
	install(Vue, options) {
		Vue.mixin({
			beforeCreate() {
				console.log(FormGroupStyle.__inject__)
				FormGroupStyle.__inject__(this.$ssrContext)
			}
		})
		Vue.component('lv-form-group', FormGroup)
	}
}
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