Closed vladyslavsokulskyiempeek closed 2 years ago
This will be an issue with your local project, as the import error has nothing to do with react-app-rewired.
Two things I can see as potentials to begin with:
"@functionsFolder/*": ["functions/*"]
or "@functionsFolder/*": ["functions/generateData/*"]
(I'm not quite sure from your usage which you're intending to be using). That "*" is actually important - it means "all file imports begining with '@functionsFolder' should have the '@functionsFolder' part replaced with 'functions/' or 'functions/generateData/'. At present, you're only mapping a single file.generateData
file specifically at present, which does not match the path for generateDataForFile
.I think the first issue of only mapping a single file path above is likely the cause for your issue, but I've listed both possibilities just in case. To be able to debug it any further, I'd need an example repository that demonstrates the issue to be able to look at.
Closing this given no recent activity.
Project structure contains functions folder (for firebase functions) in core project folder. I need import function from functions/generateData/generateDataForFile.js
config-overrides.js
jsconfig.paths.json
Yarn start works perfect, but yarn build throw error "Attempted import error: 'generateDataForFile' is not exported from '@functionsFolder/"generateDataForFile'.