Git Product home page Git Product logo

Comments (4)

kevinmarrec avatar kevinmarrec commented on May 18, 2024 2

@iwata The issue with typeRoots is that it needs relative path, and people might have their node_modules not in current folder where is running nuxt.

See
https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types

I suggest keeping types for now.

I'm working on changes which will only create tsconfig.json with these values only if the file is missing. So then people can change and use typeRoots (they already can do) if they really need it.

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024 1

@iwata Everything you mentioned won't be longer issues with nuxt/nuxt#5367

And yes, @nuxt/typescript should be installed as dependency and not devDependency to prevent error in production to be able to use nuxt start. See docs PR linked to the link above, I changed it so it tells user to install it as dependency.

It will also be in released notes when it will be released.

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024

@iwata Thanks for your proposal, I will closely check if it better fits for the next major TS change (which should switch back to the extends way instead of overriding tsconfig.json when Nuxt is starting)

from typescript.

iwata avatar iwata commented on May 18, 2024

@kevinmarrec
Thanks your prompt reply.

I'm working on changes which will only create tsconfig.json with these values only if the file is missing.

That's great.
It's related by this second question.
https://cmty.app/nuxt/nuxt.js/issues/c8891

from typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.