Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #relative #imports #react #js
ADD COMMENT
Topic
Name
7+3 =