Interlated
Interlated

Reputation: 5926

Why is nuxt asking for @nuxt/typescript-build

How do I fix this error - "@nuxt/typescript-build not found"?

WARN  Module @nuxt/typescript-build not found. Please ensure @nuxt/typescript-build 
is in devDependencies and installed. HINT: During build step, for npm/yarn, 
NODE_ENV=production or --production should NOT be used.

The environment is AWS lambda, Node 14. Nuxt is installed with typescript, generated from npm.

Upvotes: 4

Views: 1554

Answers (2)

user2465378
user2465378

Reputation: 5

If you're exceeding lambda storage limits checkout fume.app

Upvotes: 0

kissu
kissu

Reputation: 46594

Not sure what this one is doing, but this is one of the required packages during the Setup. As shown here: https://typescript.nuxtjs.org/guide/setup#installation

yarn add --dev @nuxt/typescript-build @nuxt/types

Add this to your nuxt.config.js file

export default {
  buildModules: ['@nuxt/typescript-build']
}

Create a tsconfig.json file and you should be good!

Upvotes: 3

Related Questions