Answers for "how to not use relative imports in react js"

0

how to not use relative imports in react js

// create a jsconfig.json file in your root dir(where package.json is located) and add this:
{
  "compilerOptions": {
    "baseUrl": "src"
  }
}
Posted by: Guest on July-16-2021
0

how to not use relative imports in react js

// create an .env file in the project's root dir(where package.json is located) and add
NODE_PATH=src
// and if this does not work try
NODE_PATH=./src
Posted by: Guest on July-16-2021

Code answers related to "how to not use relative imports in react js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language