Git Product home page Git Product logo

Comments (8)

sambowler avatar sambowler commented on May 18, 2024 1

Awesome, this worked as expected, thanks @kevinmarrec!

Is this functionality documented anywhere? I'm sure other folks would find it handy if they encounter the same issue. 🙂

from typescript.

chanlito avatar chanlito commented on May 18, 2024

nuxt/nuxt.js#5528

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024

@sambowler @chanlito

For programmatically usage, you'll need to explicitly tell Builder to enable it through _typescript.build hidden config option (which must be not overrided if not using programmatically usage).

Here is how we're doing within our tests to check that the type checker is used :
https://github.com/nuxt/nuxt.js/blob/dev/test/unit/typescript.modern.test.js#L11

Please close your issues if it fixes them :)

from typescript.

chanlito avatar chanlito commented on May 18, 2024

Setting the _typescript option
Screen Shot 2019-04-18 at 4 56 13 PM

Causes this error
Screen Shot 2019-04-18 at 4 56 05 PM

Which i'm not sure what it means really

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024

@chanlito Well the error is not explicit so yeah hard to know what's going. Can you update your repo with issue or provide new repo with the issue ?

from typescript.

chanlito avatar chanlito commented on May 18, 2024

I've found the Solution (lucky guess)

npm install --save-dev fork-ts-checker-webpack-plugin

Provide _typescript

const nuxt = new Nuxt({
  dev,
  _typescript: {
    build: true
  }
});

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024

@chanlito Oh yeah sorry, you didn't have this dependency, meanwhile @sambowler has it through @nuxt/typescript. You guys hadn't totally similar TypeScript setup ^^.

from typescript.

kevinmarrec avatar kevinmarrec commented on May 18, 2024

@sambowler I'll put something in the docs :)

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.