Closed SaadBazaz closed 11 months ago
Once I run
yarn add module
I get error for 'stream'. Then I install stream, and I get error for 'constants'
Seems like node isn't being polyfilled correctly
Which Node.js version are you encountering this with? Unfortunately Node 18 is the oldest supported Node version currently with Next REST Framework.
Yep, I'm using v20.0.5 That might be the reason. Lemme downgrade to 18 LTS.
However, we should have support for latest versions, I don't see how that would be a huge issue so far.
Getting this error on Node 18.12.0 (LTS)
Seems similar to the previous one.
The individual routes are working, but this error prevents the /api docs from loading.
Which Node.js version are you encountering this with? Unfortunately Node 18 is the oldest supported Node version currently with Next REST Framework.
Can you tell me which exact node version it is? Tested it on 18.12.0 and 18.18.2, both didn't work
Which Node.js version are you encountering this with? Unfortunately Node 18 is the oldest supported Node version currently with Next REST Framework.
Can you tell me which exact node version it is? Tested it on 18.12.0 and 18.18.2, both didn't work
Both 18.12 and 18.18.2 should work just fine. I need to investigate more to see if I can reproduce this. I you happen to have a public reproducible example, that would be great too.
Haven't yet been able to reproduce this, but I've identified a potential reason/fix for this due to a module resolution issue with prettier. Could you try if this issue is fixed with v3.4.7
, thanks!
Solved by upgrading Next Rest Framework, downgrading Node to 18, downgrading Next to 13.5.2, clearing node_modules, and deleting lockfile, then installing again.
Also solved by using nodejs runtime instead of edge runtime in some endpoints.
Hello, Here's an issue I'm facing in recent release of NRF:
It seems like prettier is importing something which breaks, "module", which results in all my requests failing.
Seems to be happening locally so far.