Error with dynamic modules import (React / typescript)

Hello, I deployed my react / typescript app CRUD generator on netlify and it went good.
In my code I import mdules dynamically and it works locally:

const { ModelsGenerator } = await import(`./${settings.database}/${settings.database_orm}/models-generator`);

When I enter a project name and add entities and try to generate a project, modules couldn’t be found and there is an error on the console :

Uncaught (in promise) Error: Cannot find module './mongoDB/mongoose/models-generator'

Could you please help me ?

I fixed it by changing folder name mongoDB to mongodb .