Colin Cheung
11/02/2021, 3:25 PMnode_modules/@mikro-orm/core/utils/Configuration.js:230:61: error: Could not resolve "@mikro-orm/mongodb" (mark it as external to exclude it from the bundle)
230 │ ...Name: 'MongoDriver', module: () => require('@mikro-orm/mongodb') },
╵ ~~~~~~~~~~~~~~~~~~~~
> node_modules/@mikro-orm/core/utils/Configuration.js:232:65: error: Could not resolve "@mikro-orm/mariadb" (mark it as external to exclude it from the bundle)
232 │ ...me: 'MariaDbDriver', module: () => require('@mikro-orm/mariadb') },
I'm using mysql driver and its the only driver that doesn't error since I've installed it, wondering why this is happening and if I need to maybe use a custom esbuild config?thdxr
11/02/2021, 3:26 PMColin Cheung
11/02/2021, 3:55 PMesbuildConfig
option available as shown in the docsthdxr
11/02/2021, 3:57 PMthdxr
11/02/2021, 3:57 PMthdxr
11/02/2021, 3:58 PM@mikro-orm/mongodb
to bundle.externalModules
thdxr
11/02/2021, 3:58 PM() => require
isn't standards compliant which is why esbuild is having trouble with itthdxr
11/02/2021, 4:02 PMColin Cheung
11/02/2021, 4:04 PMemitDecoratorMetaData
Colin Cheung
11/02/2021, 5:44 PMemitDecoratorMetaData
but I just need to manually specify the types so its at least working
Thanks for the help @thdxr