ui-kit
ui-kit copied to clipboard
Error importing @propeldata/ui-kit in a React app created with vite
Describe the bug
When creating a fresh React application with vite, just importing @propeldata/ui-kit
crashes with the following error:
Uncaught ReferenceError: process is not defined
at @propeldata_ui-kit.js?v=24f201ae:23182:9
To reproduce
Create a react app with vite
yarn create vite my-app --tempate react-ts
install @propeldata/ui-kit
and create a any dummy component.
Desktop (please complete the following information)
- OS: macOS
- Browser: Chrome
- UI Kit Version: 0.5.5
Installing vite-plugin-node-polyfills
and adding it to vite.config.ts
seems to solve the issue