Skip to content

Error importing @propeldata/ui-kit in a React app created with vite #209

Description

@GabrielMusatMestre

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
Screenshot 2024-04-11 at 11 58 36

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions