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"
}
}
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"
}
}
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us