Developers
Bundling & Troubleshooting
ESBuild

Troubleshooting bundling with ESbuild

If you have followed the steps in the Examples section, your development environment should be configured as follows.

Environment Setup

Create your directory and set up your app environment:

npm create vite@latest

Choose React, then Typescript. Navigate to your application directory and run:

cd < YOUR_APP >
npm i
npm run dev
Installation

Install the required package:

npm install @nymproject/< PACKAGE_NAME >

The CosmosKit example requires polyfills.

With the code from the step-by-step examples section in place, the application should run without bundling errors.