#No metadata for ANY entity, but only on localhost

1 messages · Page 1 of 1 (latest)

fervent verge
#

So I have a very weird problem with TypeORM, I get this error on every database request EntityMetadataNotFoundError: No metadata for "*any entity name*" was found.

BUT it only happens on localhost... both are connected to the same database, both share exactly the same code (just pushed so its the same) and still happens...

I checked every entity and relation, I tried reverting to morning commit (it worked then), I tried cloning the repo again and still the same, don't even know when it occured for the first time.

I'm dealing with it for about 4 hours...

#

Ofc I also tried removing node_modules and package-lock.json, updating and downgrading typeorm, @limpid spade/typeorm and pg versions

#

dist folder too, starting in prod mode, building....

fervent verge
#

I dropped the database and still doesn't work XD

fervent verge
#

I found out that TypeORM decided to not auto load entities FOR NO REASON XD

fervent verge
#

info: No classes were found using the provided glob pattern: "C:\Users\hisza\Projekty\dziarsko\server\dist**\entities\*.entity{.ts,.js}" I found this...