compilerOptions
has webpack: true
when creating library breaking TypeORM
#1679
Labels
compilerOptions
has webpack: true
when creating library breaking TypeORM
#1679
** Describing the bug **
My project is using TypeORM and it might just be typeorm's bug. I am not really sure.
I created a library inside my project using
nest g library my-library
. Library was created and I have written my code. Everything was going great until when I tried to run it. At first TypeORM says that it can't connect with the database which is weird for an error message when in it did connect but couldn't run any queries. I've been hunting and comparing the file for 30 minutes and found somehownest-cli.json
has awebpack: true
in thecompilerOptions
. This made TypeORM impossible to find it's entity files which causes a weird error message of "can't connect to the database".I will report this issue to TypeORM as well.
** Question **
Is it really necessary to have
compilerOptions
to havewebpack: true
? I want to know more and what does it do? It seems to me that libraries work regardless of this option being true or false.** Error message **
The text was updated successfully, but these errors were encountered: