Photo by Aleksandra Boguslawska on Unsplash

Absolute path on React from src directory

After reading so many tutorials and guides explaining way too many configuration steps. I decided to offer you this Occam’s Razor guide to a proper config.

VSCode nor ESLint are able of resolving path from ./src folder

TL;DR

Add to your jsconfig.json file

--

--

--

I am a software developer with many many hobbies. Perhaps coding is another one :)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[Action required] Your RSS.app Trial has Expired — Fri Apr 23 2021

More JS, Lets do this!

Matter.js Collisions Explained

Angular File Structure and Best Practices (that help to scale)

Is “Don’t Pollute the Global Namespace” Still Good Advice in JavaScript?

What is the difference between JavaScript Map and Object?

Using Vue Named Slots to Create Multiple Template Slots

Building a Feature Toggle framework in React

Coding new features (image credit https://unsplash.com/@fatosi)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andy Gonzalez

Andy Gonzalez

I am a software developer with many many hobbies. Perhaps coding is another one :)

More from Medium

Grouping in React using React-Alignment-Guide

The Trials and Tribulations of Asynchronous Code

How to protect /uploads route with a custom policy in Strapi V4

Setting up Jest on Preact + Mobx +TypeScript + Pug environment