ReferenceError: TextEncoder is not defined
if you are having this error while running node server locate this file node_modules/whatwg-url/dist/encoding.js or …/lib/encoding.js add this line at top const { TextEncoder, TextDecoder } = require(“util”);