-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Type definition of $loading causes conflict when using nuxt-ts #1268
Comments
While I agree 100% that namespacing is a good idea I would add for now a 'noconflict' mode that install under the name space and document this. To then remove the mode and go only with the name space in the future to give people time to transition Edit: node to mode |
@DonNicoJs Yes I think that'd be great! How would you set up this "noconflict" node? As a branch in this repository? I could probably do a PR next week. |
@lu40 I meant mode :D but yeah what I suggest is to modify this: https://github.com/buefy/buefy/blob/dev/src/utils/plugins.js#L12 |
@DonNicoJs Ahh, I see! :D I'm not sure though if this can solve the type definition problem of having For now, I only see the way of setting up a branch or fork, where the type definitions are namespaced too.. |
@lu40 true that as well mmh but since all the ts users would use the name space (I think) we could change the types no? |
@DonNicoJs This only applies for the ones who use Nuxt. Other users, using e.g. plain Vue with Typescript and Buefy won't have the namespace conflict. |
@lu40 True, even tho I am of the opinion that the namespace should be the default. |
When will the namespaced version be out btw? |
@jtommy |
Yes, probably I'll work on it for next version |
Awesome! Thanks :) |
@jtommy it's too much breakable change. |
@afwn90cj93201nixr2e1re |
It's on github. Not on doc's site.
|
There should be additional page, inside docs, merging from -> to. |
试试 tsconfig.json compilerOptions参数里 "compilerOptions": { |
@jkhmnk now you shouldn't need it |
Overview of the problem
Buefy version: 0.7.3
Vuejs version: 2.6.8
Nuxt version: 2.4.5
OS/Browser: -
Description
When using
nuxt-ts
and buefy together the following error occurs:See the corresponding issue at nuxt: https://github.com/nuxt/nuxt.js/issues/4877
The proposed solution is to have a namespaced applied, like vuetify does. So I guess to have something like
this.$buefy.loading
.As I wasn't able to find any workaround until now, this really makes it impossible to use buefy together with the typescript version of Nuxt. As
$loading
is a very generic name, I guess it's likely that this will not only conflict with Nuxt.Steps to reproduce
nuxt-ts
together with BuefyThe text was updated successfully, but these errors were encountered: