Coder Social home page Coder Social logo

OpenAPI typescript error about core HOT 3 CLOSED

Gerbuuun avatar Gerbuuun commented on August 14, 2024
OpenAPI typescript error

from core.

Comments (3)

morcth avatar morcth commented on August 14, 2024

For me, after running npx nuxthub init my-app, nitro.experimental.openAPI is already set to true. Did you have to add it to your config?

All I have to do is wait a few minutes after creating a new hub project and my tsconfig.json in root and in .nuxt will turn red and give the baseUrl ts error.

As mentioned in this closed ticket: #97
Adding: "compilerOptions": { "baseUrl": "./" }
removes the error but I'm not sure it should be ./ in both files

from core.

Gerbuuun avatar Gerbuuun commented on August 14, 2024

Sure it will solve the error but it might be that nuxthub/nitro does imports incorrectly.
Nuxt generates the tsconfig.json for you so you don't have to touch it (zero config, kindof).
To keep it that way, the module should fix the imports or add the baseUrl to the tsconfig.json

from core.

morcth avatar morcth commented on August 14, 2024

Agreed

from core.

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.