node-viewmodel icon indicating copy to clipboard operation
node-viewmodel copied to clipboard

[nodejs 14] Warning: Accessing non-existent property 'prototype' of module exports inside circular dependency

Open pavel-rudzenia opened this issue 4 years ago • 0 comments

(node:87541) Warning: Accessing non-existent property 'prototype' of module exports inside circular dependency at emitCircularRequireWarning (internal/modules/cjs/loader.js:853:11) at Object.get (internal/modules/cjs/loader.js:867:5) at new ViewModel (/node_modules/cqrs-eventdenormalizer/node_modules/viewmodel/lib/viewmodel.js:17:28)

Hey! Any chance it'll be fixed in near future or no plans and all the hopes lies with the community? https://github.com/thenativeweb/node-viewmodel/blob/master/lib/viewmodel.js#L17-L23 Seems those lines don't have any sense in case Repository.prototype is undefined (in debug mode I receive Repository isn't a constructor).

pavel-rudzenia avatar Dec 24 '20 17:12 pavel-rudzenia