Open cesco69 opened 4 months ago
Hi @cesco69 , thanks for your issue, your analysis and your workarounds :+1: Do you think this is only TypeScript related? Not really, or what do you think?
I have to dig a bit to fully understand whats going on and think what could be the best solution for this. I'll come back to this...
Hi, I'm on Node.js 20 with typescript, when try to use geoserver-node-client I see this error into the console
From the node-fetch package readme:
If you want to require it, then downgrade to v2.
The other option you have is to use async
import('node-fetch')
, eg.:or use CommonJS https://github.com/node-fetch/node-fetch?tab=readme-ov-file#commonjs eg.:
The workaround for use latest
geoserver-node-client
is install oldnode-fetch
2.6.8: