typescript icon indicating copy to clipboard operation
typescript copied to clipboard

TypeScript Support for Nuxt 2

Results 33 typescript issues
Sort by recently updated
recently updated
newest added

This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest...

dependencies

**Describe the bug** When using babel in conjunction with nuxt typescript I run into an issue using @nuxt/babel-preset-env, which contains @babel/plugin-transform-parameters. Default parameters should be transpiled for compatibility with e.g....

question

I discovered that it was a bit difficult for me to understand and get the Vuex to work with the initialiser plugin. I think it would be better to includes...

**Describe the bug** In the `@nuxt/typescript-runtime` code [here](https://github.com/nuxt/typescript/blob/master/packages/typescript-runtime/bin/nuxt-ts.js#L6) it references either `@nuxt/cli` or `@nuxt/cli-edge` but these are dependencies of `nuxt`, not `@nuxt/typescript-runtime`. normally this shouldn't be an issue because you'd...

I'm trying to learn how to do vuex things in a typescript way, but having too much pain to find useful guides and examples. The examples provided in https://github.com/nuxt/typescript/tree/master/examples is...

help wanted
feature request

Dynamically imported directory throws this error ![image](https://user-images.githubusercontent.com/3810177/130812465-b347cbd0-0850-4810-9c64-abfad03c5d47.png) Normal imports are working fine ![image](https://user-images.githubusercontent.com/3810177/130808853-96b66afe-2809-491c-9905-9fdcbc64c299.png) here is my tsconfig.json ``` { "compilerOptions": { "target": "ES2018", "module": "ESNext", "moduleResolution": "node", "lib": ["ESNext", "ESNext.AsyncIterable",...

Example of component script is not shown in [https://typescript.nuxtjs.org/cookbook/components/#script](https://typescript.nuxtjs.org/cookbook/components/#script) ![Screenshot from 2021-07-17 13-50-13](https://user-images.githubusercontent.com/5635677/126032470-01719ad7-16a9-47a3-a9ab-dbdf75c63cc9.png)

In NuxtJS its easy to breakdown vuex file into separate files like e.g 📦store ┣ 📂auth ┣ 📂utils ┣ 📂posts ┃ ┗ 📜actions.js ┃ ┗ 📜mutations.js ┃ ┗ 📜getters.js ┃...

feature request

The following error was produced during nuxt-generate: ```[fatal] Nuxt build error ERROR in test/unit/Blog.spec.ts:37:24 TS2749: 'Blog' refers to a value, but is being used as a type here. Did you...

**Describe the bug** When creating a component within a module, `this.$nuxt` is undefined in the component when using Options API (Vue.extend) or Class API (@Component). Defining the component using `export...