Comments (4)
@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.
@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.
@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.
@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)
- 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.