binggle
9 months ago
925
2
Vue

v-cloak compile error

Posted 9 months ago by binggle

Hello.

I tried to use vuejs 2.6.10 with laravel 6.4

in App.vue

<div id="app" v-cloak>
;;
;

<style>

[v-cloak] > * { display:none }
[v-cloak]::before { content: "loading…" }

</style>

But when I run 'npm run dev' , it shows the followings.

ERROR  Failed to compile with 1 errors                                                                                

 error  in ./resources/js/App.vue?vue&type=style&index=0&lang=postcss&

Module parse failed: Unexpected token (115:12)
File was processed with these loaders:
 * ./node_modules/vue-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| } */
|
> [v-cloak] > * { display:none }
| [v-cloak]::before { content: "loading…" }
|


How can I fix this error ?

Please sign in or create an account to participate in this conversation.