You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to LoopBack4, and I was following the tutorials to generate a simple blog API using LoopBack, and I knew I can use 'migrateSchema' to create database tables using my models.
Just follow the tutorial to generate the simple order, customer model and relationships, and try to run the app after adding the relationship (this link)
Current Behavior
When I use npm strat I get this error:
Cannot start the application. TypeError: Cannot read property 'target' of undefined
at resolveBelongsToMetadata (E:\personal\project\node_modules\@loopback\repository\dist\relations\belongs-to\belongs-to-accessor.js:37:54)
at Object.createBelongsToAccessor (E:\personal\project\node_modules\@loopback\repository\dist\relations\belongs-to\belongs-to-accessor.js:16:18)
at StoryRepository.createBelongsToAccessorFor (E:\personal\project\node_modules\@loopback\repository\dist\repositories\legacy-juggler-bridge.js:184:28)
at new StoryRepository (E:\personal\project\node_modules\dist\repositories\story.repository.js:22:26)
Actually, I'm disappointed by loopback documentation, and also errors which are not meaningful, especially when you search them on Google, and you can't find anything meaningful by the loopback error message.
Steps to reproduce
I'm new to LoopBack4, and I was following the tutorials to generate a simple blog API using LoopBack, and I knew I can use 'migrateSchema' to create database tables using my models.
Just follow the tutorial to generate the simple order, customer model and relationships, and try to run the app after adding the relationship (this link)
Current Behavior
When I use
npm strat
I get this error:Link to reproduction sanbox
https://github.com/m98/loopback4-example/tree/master/src
Additional information
Windows 10 'win32', 'x64', '10.16.0'
The text was updated successfully, but these errors were encountered: