Additional Extensions not filled by @nuxt/typescript-build
See original GitHub issueVersion
Reproduction link
Steps to reproduce
- setup @nuxt/typescript-builder
- Start nuxt programatically. const nuxt = new Nuxt => new Builder(nuxt)
- https://github.com/nuxt/nuxt.js/blob/92c7f4ed249466870a477798f910c84eb1fdd18d/packages/builder/src/builder.js#L47 will be empty. Should be [‘ts’, ‘tsx’]
What is expected ?
additionalExtensions should be ['ts', 'tsx']
What is actually happening?
additionalExtensions is []
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Setup - Nuxt TypeScript
All you need to do is add @nuxt/typescript-build to your buildModules in nuxt.config.js. nuxt.config.js ... Enables suppress not found typescript warnings.
Read more >Setup Typescript with NuxtJs - Sandro Maglione
Learn how to setup Typescript in a NuxtJs project. From creating a NuxtJs app to having full Typescript support.
Read more >HOW TO SETUP NUXT WITH TYPSCRIPT A TUTORIAL
Typescript goes really well with Nuxt. In this video I discuss how you can create a brand new Nuxt app with Typescript. Nuxt...
Read more >Adding an API and database to your Nuxt App with Prisma
This tutorial explores how to build a fullstack application using Nuxt and Prisma for database access. Tagged with javascript, nuxt, vue, ...
Read more >How to Build a Chrome Extension with Vue - SitePoint
Now let's add the following code to background.js to make the browser say hello when the extension is installed: chrome.runtime.onInstalled ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@b-m-f I think it’s related to https://github.com/nuxt/typescript/issues/139 request, i’d say new Guide section about Programmatic usage
@b-m-f You need to do
await nuxt.ready()
AFAIK so it properly setup the module (it will call the module container that is responsible to register modules). Without doing it it will trigger the build without having called@nuxt/typescript-build
so you won’t have additionalExtensions properly set.Alternatively, you can also register the TS
@nuxt/typescript-build
module this way : https://github.com/nuxt/typescript/blob/master/packages/typescript-build/test/module.test.ts#L36