Comments (8)
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.
nuxt/nuxt.js#5528
from typescript.
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.
Setting the _typescript
option
Which i'm not sure what it means really
from typescript.
@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.
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.
@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.
@sambowler I'll put something in the docs :)
from typescript.
Related Issues (20)
- JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.ts(7026) HOT 19
- Missing types for loadNuxt HOT 3
- TS Support for Nuxt 2 fate HOT 2
- Edit tsconfig.json file path HOT 3
- Class API Support HOT 1
- an error occurred while building a nuxtJs website
- ts-loader dependency error in typescript example. HOT 1
- @nuxt/cli or @nuxt/cli-edge not listed as dependencies of @nuxt/typescript-runtime
- TS2339: Property 'DisplayNames' does not exist on type 'typeof Intl'. HOT 1
- How to use addTemplate API by typescript HOT 1
- Plugin: `$axios` undefined when destructuring Context HOT 4
- @nuxt/typescript-build cannot check types for literal strings HOT 2
- TS errors are ignored and hidden by default HOT 1
- Outdated typescript dependency HOT 6
- How to debug RangeError: Maximum call stack size exceeded at getApparentType HOT 5
- Examples on typescript.nuxtjs.org does not work
- Cannot read properties of undefined (reading 'options') HOT 2
- vscode ****.json file Point out error: "Expected an assignment or function call and instead saw an expression" HOT 2
- I got TS error, but nuxt is not breaking the build HOT 10
- @nuxt/typescript-build‘s dependencies with [email protected] is too low HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.