React: “Module not found: Can't resolve” Path error

React: “Module not found: Can't resolve” Path error

So, I have this code in my&nbsp;<strong>src/components</strong>

So, I have this code in my src/components

import PropTypes from 'prop-types';
import React from 'react';
import Typography from 'Typography'; 
I got the error on like 3
Module not found: Can't resolve 'Typography'

I have one file named Typography.js in same directory

PS: I have two ununtu system

In one system this code is working fine and in another system it'll gives error.

If I use import Typography from './Typography'; then it won't give me error but why in one system same code is working fine and In another system it gives error?

Should I have use import Typography from './Typography'; everywhere?

javascript reactjs

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

The essential JavaScript concepts that you should understand

The essential JavaScript concepts that you should understand - For successful developing and to pass a work interview

JavaScript Memory Management System

The main goal of this article is help to readers to understand that how memory management system performs in JavaScript. I will use a shorthand such as GC which means Garbage Collection. When the browsers use Javascript, they need any memory location to store objects, functions, and all other things. Let’s deep in dive that how things going to work in GC.

Mapbox GL Javascript wrapper for ReactJS

react-mapbox-wrapper Mapbox GL Javascript wrapper for ReactJS

JavaScript Expressions in JSX in ReactJs

Welcome, what is JSX Expressions in React Js in Hindi? JSX is an Expression Too After compilation, JSX expressions become regular JavaScript function calls a...

Grokking Call(), Apply() and Bind() Methods in JavaScript

In this article, we will have a look at the call(), apply() and bind() methods of JavaScript. Basically these 3 methods are used to control the invocation of the function.