An open API service indexing awesome lists of open source software.

https://github.com/tillsanders/nuxt-ts-cookbook-error

The documentation on how to write plugins for nuxt-ts seems to be outdated. This is a simple reproduction.
https://github.com/tillsanders/nuxt-ts-cookbook-error

Last synced: 5 months ago
JSON representation

The documentation on how to write plugins for nuxt-ts seems to be outdated. This is a simple reproduction.

Awesome Lists containing this project

README

          

# The documentation on how to write plugins for nuxt-ts seems to be outdated. This is a simple reproduction.

This project was set up using [create-nuxt-app@latest](https://github.com/nuxt/create-nuxt-app). A plugin was added according and using the example code of the [Nuxt.js/TypeScript Cookbook](https://typescript.nuxtjs.org/cookbook/plugins.html#iii-combined-inject).

How to reproduce the error message:

1. Clone, install, etc.
2. Open the start page [`pages/index.vue`](https://github.com/tillsanders/nuxt-ts-cookbook-error/blob/master/pages/index.vue) in your IDE (tested with VS Code)
3. Take a look at line 35. You should see a Vetur warning for `$myInjectedFunction`: `Property '$myInjectedFunction' does not exist on type 'CombinedVueInstance>>'.Vetur(2339)`