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.
- Host: GitHub
- URL: https://github.com/tillsanders/nuxt-ts-cookbook-error
- Owner: tillsanders
- Created: 2020-10-06T11:53:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T12:00:49.000Z (almost 6 years ago)
- Last Synced: 2025-11-28T03:48:27.819Z (8 months ago)
- Language: Vue
- Size: 171 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)`