(node:7093) Unhandled Promise Rejection Warning

Need help … node / react / web3 project

sorry first time setting up node / react app on glitch …
I would love to code this project on glitch
Works Great / builds / runs Fine on Vercel → quantumalchemy/test

(node:7093) UnhandledPromiseRejectionWarning: ReferenceError: TextEncoder is not defined
at Object. (/rbd/pnpm-volume/c13f1e62-4f3c-456c-b108-d9ed96ae88b3/node_modules/.registry.npmjs.org/next/12.1.0/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js:9:95)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/rbd/pnpm-volume/c13f1e62-4f3c-456c-b108-d9ed96ae88b3/node_modules/.registry.npmjs.org/next/12.1.0/node_modules/next/dist/compiled/react-server-dom-webpack/writer.browser.server.js:4:20)
at Module._compile (internal/modules/cjs/loader.js:778:30)
(node:7093) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7093) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error - Failed to load next.config.js, see more info here next-config-error | Next.js
Error: Not supported
at Object.loadConfig [as default] (/rbd/pnpm-volume/c13f1e62-4f3c-456c-b108-d9ed96ae88b3/node_modules/.registry.npmjs.org/next/12.1.0/node_modules/next/dist/server/config.js:448:78)

Hi there - you probably need a specific version of Node to get it to work, your package.json doesn’t set one and it’s falling back to a version that’s likely not compatible with your app. Here’s a doc to show you how to do that: Can I change the version of node.js my project uses? - Glitch Support

This answer on stackoverflow worked for me: javascript - ReferenceError: TextEncoder is not defined - Stack Overflow

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.