Coding⏱️ 2 min read📅 2026-05-31

How to Fix: Typescript eslint - Missing file extension "ts" import/extensions

ESLint error for missing file extension in Typescript import.

Quick Answer: Add the '.ts' file extension to the import path in your .eslintrc configuration.

To resolve the 'Missing file extension "ts"' error for your import/extensions configuration in ESLint, you need to add a file extension to the path of the file that's causing the issue.

🚀 How to Resolve This Issue

Method 1: Adding File Extension

  1. Step 1: Open your .eslintrc configuration file and locate the import/extensions section.

Method 2: Using `files` Configuration

  1. Step 1: Update your .eslintrc configuration file to include the `files` section.

✨ Wrapping Up

By following these steps, you should be able to resolve the 'Missing file extension "ts"' error and ensure that your ESLint configuration is working correctly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions