Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have installed React TS in Vite, but it is showing me an error in
tsconfig.json
. I can't figure out why because I haven't even tried to change the installed code yet. What is the reason?
tsconfig.json
error: Specify how TypeScript looks up a file from a given module specifier.
See more:
https://www.typescriptlang.org/tsconfig#moduleResolution
vscode-file://vscode-app/c:/Users/User/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html
Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
error: Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.
error: Enable importing .json files
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.