jsconfigerror is an example repository showing the jsconfig is not working.
I have the following set inside my jsconig.json file:
{
"compilerOptions": {
"baseUrl": "./"
}
}
However, when I do an import, it fails:
./pages/index.js
Module not found: Can't resolve 'components/AThing' in '/var/www/gd.hutuber.com/pages'
Folder Structure
¬ components
¬ AThing
¬ pages
¬ index.js
pages/index.js
import Head from 'components/AThing'
How can I get baseUrl
to work with Next.js?