Closed RedMickey closed 2 years ago
I doubt this is something "fixable" on our end, its probably a nodejs bug.
Yep, It seems that this issue is related to these ones in Node repo: https://github.com/nodejs/node/issues/44415 https://github.com/nodejs/node/issues/43148
Hi, I faced interesting issue while trying out this sample app. The issue is that the application throws the following error only when a debugger is attached to the app:
When I start the app without a debugger, it works fine.
I've investigated this problem and found out that the issue is related to Node.js 18.x. I tested the app on Node.js v18.6 and v16.15 and the issue was reproduced only on 18th version. As I understood from my investigation, on Node 18, the
currentRequestContext
function sometimes returnsundefined
instead of the current store. Then I also faced the same problem on my own app while migrating to the 5th version of the ORM, so this issue may not be specific only to the sample application.Steps to reproduce
Prerequisites: Node.js 18.x
yarn start:debug
command or via VS Code scenario:http://localhost:3000/api/articles