sirix-web-frontend icon indicating copy to clipboard operation
sirix-web-frontend copied to clipboard

The type definition of `$loading` in Nuxt.js conflicts with element-ui

Open JohannesLichtenberger opened this issue 6 years ago • 8 comments

See: https://github.com/nuxt/typescript/issues/49

I did the workaround locally mentioned in

https://github.com/nuxt/typescript/issues/49#issuecomment-531086770

However, I hope that gets fixed. Either from the Element-UI or Next.js developers...

JohannesLichtenberger avatar Oct 07 '19 12:10 JohannesLichtenberger

I didn't check if there is an ongoing issue for this in the Element Repo. But I don't think it will be fixed by Nuxt

simhol avatar Oct 07 '19 12:10 simhol

Yeah, it already has the wontfix label ;-)

JohannesLichtenberger avatar Oct 07 '19 12:10 JohannesLichtenberger

Filed an issue, let's see: https://github.com/ElemeFE/element/issues/17630

JohannesLichtenberger avatar Oct 07 '19 13:10 JohannesLichtenberger

But how do you workaround this? With latest sync, yarn build is now failing

pareshjoshi avatar Oct 09 '19 10:10 pareshjoshi

Bad workaround I guess (changing the type to any): https://github.com/nuxt/typescript/issues/49#issuecomment-531086770

JohannesLichtenberger avatar Oct 09 '19 10:10 JohannesLichtenberger

I hope it works for you, too? But it's for sure no real solution. For me as a Java and little bit Kotlin software engineer it's a bit strange to have such problems with name/type clashes.

JohannesLichtenberger avatar Oct 09 '19 11:10 JohannesLichtenberger

Yes, that worked. But the repo it in broken state, unless it is documented in readme file, no one will be able to figure it out

pareshjoshi avatar Oct 09 '19 11:10 pareshjoshi

Yes, added to the README. However, I'm not sure if one of the projects will change anything :(

JohannesLichtenberger avatar Oct 09 '19 11:10 JohannesLichtenberger