vue-tel-input icon indicating copy to clipboard operation
vue-tel-input copied to clipboard

vue-tel-input break compiling while used with vue 3 and vue-router 4

Open riderx opened this issue 3 years ago • 1 comments

I got a verry weird issue on my code, it took me hours to understand.

When I use your plugin in combinaison with vue 3 and vue-router 4 I get a weird compiling issue !

I finally get a way to reproduce it in code sandbox :

https://codesandbox.io/s/festive-fast-6somo?file=/src/components/about.vue

everything works fine until you uncomment vue-tel-input. Then the compilation get broken and the only way to make it work is to comment and reload the whole codesandbox. see below: Screenshot 2021-12-06 at 22 53 00

In my project local I use vite and I get the same kind of weird error. I need to clear the vite cache to be able to reload after commenting. Screenshot 2021-12-06 at 22 52 26

I will report to vue-router too.

I just tried to uncomment all but not the CSS and it work in codesandbox, still not in my local I need to comment the whole import.

riderx avatar Dec 06 '21 22:12 riderx

Did found explain ! https://github.com/ionic-team/ionic-framework/issues/24800 Liam pointed there the issue about import for vite

riderx avatar Feb 16 '22 23:02 riderx