I noticed NODE_PATH is assigned to ./src in package.json. Why is this necessary?
I believe that specifying this adds that path as a valid root for absolute import statements.
E.G. import SurveyForm from "components" works because the file lives in ~/src/components and we've specified ./src as a valid start point so it will successfully find /components without a relative URL
Ah ok, thanks!
Most helpful comment
I believe that specifying this adds that path as a valid root for absolute
importstatements.E.G.
import SurveyForm from "components"works because the file lives in~/src/componentsand we've specified./srcas a valid start point so it will successfully find/componentswithout a relative URL