playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
662 stars 61 forks source link

No known conditions for "./react" specifier in "@playcanvas/pcui" package error during build #345

Closed rhanlin closed 4 months ago

rhanlin commented 4 months ago

Describe the bug After upgrading from version 4.1.2 to 4.2.0, the build failed.

To Reproduce Steps to reproduce the behavior:

  1. Create a project using Vite, React and TypeScript
  2. NodeJS version: 20.11.1, pnpm verison: 8.15.3
  3. Install @playcanvas/pcui 4.2.0
  4. Go to the "App.tsx" file, and import any component from "@playcanvas/pcui" and use it.
  5. Run pnpm i && pnpm build
  6. See error reproduce project link

Expected behavior Successfully build the "dist" folder.

Screenshots

pcui-build-failed
willeastcott commented 4 months ago

Hey @kpal81xd - if we're gonna do a PCUI release for the locked VectorInput, do you have a second to look into this beforehand? If there's a simple change to address this, it'd be nice to include it in the release.