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

vue-tour.css - Module Parse failed: Unexpected token (1:13) #269

Open
jjakob666 opened this issue Sep 4, 2024 · 0 comments
Open

vue-tour.css - Module Parse failed: Unexpected token (1:13) #269

jjakob666 opened this issue Sep 4, 2024 · 0 comments

Comments

@jjakob666
Copy link

jjakob666 commented Sep 4, 2024

If I add the import of the vue-tour.css after the import VueTour from 'vue-tour' I get a compilation error

using:

"node_modules/vue": "version": "2.7.14",
"node_modules/vue-tour": "version": "2.0.0",
npm: '9.5.0',
  node: '18.15.0',
index.js
`
...

//product tour capability: https://pulsardev.github.io/vue-tour/?ref=madewithvuejs.com
import VueTour from 'vue-tour';
//require('vue-tour/dist/vue-tour.css'); //fails parsing
import 'vue-tour/dist/vue-tour.css'; //fails parsing
Vue.use(VueTour);

...

`

watch compilation reports this error:

`
ERROR in ./node_modules/vue-tour/dist/vue-tour.css 1:13
Module parse failed: Unexpected token (1:13)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> body.v-tour--active {
|       pointer-events: none
| }
 @ ./js/vue/index.js 33:0-36
 @ ./js/index.js 15:2-18

webpack 5.77.0 compiled with 1 error and 19 warnings in 597 ms
`

If I comment out the css import it compiles file and the tour runs fine, but obviously there is no theming and it looks terrible.

unminified first couple lines of the css position 13 is the double --:

`
body.v-tour--active {
	pointer-events: none
}

.v-tour {
	pointer-events: auto
}

`
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