I've recently updated CRA to v4 and now webpack doesn't recognize absolute imports. This error appears:
TypeError: store__WEBPACK_IMPORTED_MODULE_1__.default.model is not a function
import looks like this:
import store from 'store';
and it imports store from src folder
My jsconfig.json looks like this:
{
"compilerOptions": {
"baseUrl": "./src"
}
}
With CRA v3 it works perfectly fine. How can I make this work without ejecting?