I recently added the Gradio JS library to my Next.js application using the following command:
npm i @gradio/client
import { useState } from 'react';
import { client } from "@gradio/client";
import styles from "./home.module.css"
However, upon importing it into my Next.js app, I encountered the error below:
Displayed Error Message:
Failed to Compile
node:buffer
Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.`