-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
transferedIssue transfered from nuxt main repoIssue transfered from nuxt main repotypesThe issue or pull request is related to `types` packageThe issue or pull request is related to `types` packagewontfixThis will not be worked onThis will not be worked on
Description
Version
Reproduction link
https://github.com/iwata/codesandbox-nuxt
Steps to reproduce
$ git clone git@github.com:iwata/codesandbox-nuxt.git
$ yarn install
$ yarn dev
What is expected ?
No type checking errors
What is actually happening?
It shows this error:
ERROR in /Users/iwata/.go/src/github.com/iwata/codesandbox-nuxt/node_modules/@nuxt/vue-app/types/index.d.ts(73,18):
TS2430: Interface 'NuxtApp' incorrectly extends interface 'Vue'.
Types of property '$loading' are incompatible.
Property 'open' is missing in type 'NuxtLoading' but required in type '{ open: (params: LoadingConfig) => { close: () => any; }; }'.
Additional comments?
If you import Buefy
looks like plugins/buefy.ts
, it declares $loading
for Vue instance.
https://github.com/buefy/buefy/blob/dev/types/index.d.ts#L10
So NuxtApp
extends the Vue, therefore $loading
conflicts.
https://github.com/nuxt/nuxt.js/blob/v2.4.0/packages/vue-app/types/index.d.ts#L73-L74
arambert, ishiyama0530, hartmut-co-uk, aglio, dungsil and 3 more
Metadata
Metadata
Assignees
Labels
transferedIssue transfered from nuxt main repoIssue transfered from nuxt main repotypesThe issue or pull request is related to `types` packageThe issue or pull request is related to `types` packagewontfixThis will not be worked onThis will not be worked on