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

Cannot load in my project due to loader issue #5

Open
raintears opened this issue Aug 5, 2018 · 1 comment
Open

Cannot load in my project due to loader issue #5

raintears opened this issue Aug 5, 2018 · 1 comment

Comments

@raintears
Copy link

ERROR in ./node_modules/vue-spinner-component/src/Spinner.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.

Is this able to use or only works standalone?

@christophemarois
Copy link

Just ran into this myself. It's because Spinner.vue uses <style lang="scss">...</style>, so if you don't have node-sass and sass-loader, the Vue template compiler will fail.

Not only that, but Spinner.vue's style is perfectly valid css, which means that the lang="scss" could be removed without doing anything more.

For a quick fix, just copy Spinner.vue into your project (to import it locally) and remove the lang="scss" attribute from the <style/> tag.

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