Documentation
Installation

Installation

To install react-terminal in your project, run:

npm install @envoy1084/react-terminal
⚠️

For Next.js users, you might get an error saying ESM packages (rehype-format) need to be imported. Use 'import' to reference the package instead.. Add the following to your next.config.js to fix the issue:

next.config.js
const config = {
  // other configuration
  experimental: {
      esmExternals: 'loose',
  },
};
 
export default config;