Skip to content
the poor coder

error: you have both a tsconfig.json and a jsconfig.json. if you are using typescript please remove your jsconfig.json file.

Poor Man
Published
Reading time
1 min read
On this page

Error: You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file.#

If you're a TypeScript developer, you may run into the following error message:

Text
Error: You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file.

This error message is telling you that you have both a tsconfig.json file and a jsconfig.json file in your project, and if you are using TypeScript, you should remove the jsconfig.json file.

What is tsconfig.json?#

tsconfig.json is a configuration file for TypeScript projects that specifies the root files and compiler options required to compile the project.

What is jsconfig.json?#

jsconfig.json is a configuration file for JavaScript projects that provides IntelliSense support for Visual Studio Code.

Why can't I use both files?#

If you're using TypeScript, you don't need the jsconfig.json file, because everything that jsconfig.json can do, tsconfig.json can do better. Additionally, having both files can cause conflicts and confusion, so it's best to remove the jsconfig.json file if you're using TypeScript.

How do I remove the jsconfig.json file?#

To remove the jsconfig.json file, simply delete it from your project directory.

Bash
rm jsconfig.json

Summary#

If you are developing a TypeScript project and you see the error message "You have both a tsconfig.json and a jsconfig.json", you should remove the jsconfig.json file from your project directory. This will prevent conflicts and confusion, and ensure that your project is using the correct configuration file.

Keep going

2023

how to sort an array

How to Sort an Array If you have an array and you want to order its elements in a specific way, you need to use a sorting algorithm. There are several sorting algorithms available, but two of the most commonly used are…

javascript2 min read
2023

jquery mobile or desktop

jQuery Mobile or Desktop? As a web developer, I have had some experience with both jQuery Mobile and jQuery Desktop. Both frameworks have their pros and cons, and which one to use really depends on the specific project…

javascript1 min read
2023

node.js folder structure

Node.js Folder Structure If you are new to Node.js, it can be daunting to create a folder structure that will work for your project. The structure you choose will depend on the size and complexity of your project. Here…

javascript1 min read
ESC