'Typeorm cli paths on windows

i have a problem with typeorm path on windows. When I want to run an autogenerated migration through the commandline I get this error

"No changes in database schema were found - cannot generate a migration. To create a new empty migration use "typeorm migration:create" command". I have made changes in entities but they are not registered. Here is a screen of my folder structure (entities are in the entities folder) enter image description here

And here is my code where for the cli. The error is there but i have no idea how paths are working on windows and i lost few hours on this already.

cli: { 
     entitiesDir: join(__dirname, "entities", "bookmarks.entity.ts"),
     // migrationsDir: join(__dirname, "migration"),
},

I have tried a lot of combinations but nothing is working

Thanks for help in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source