question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Additional Extensions not filled by @nuxt/typescript-build

See original GitHub issue

Version

v2.10.1

Reproduction link

https://toomuchwork.com

Steps to reproduce

What is expected ?

additionalExtensions should be ['ts', 'tsx']

What is actually happening?

additionalExtensions is []

<div align="right">This bug report is available on Nuxt community (#c9924)</div>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
kevinmarreccommented, Oct 23, 2019

@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

1reaction
kevinmarreccommented, Oct 18, 2019

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found