web-client-ui icon indicating copy to clipboard operation
web-client-ui copied to clipboard

@deephaven/components does not work with webpack

Open mattrunyon opened this issue 1 year ago • 0 comments

Description

With #1871, we added imports from react-transition-group/Transition and react-transition-group/CSSTransition. These are not valid ESM imports (they aren't listed as imports in the react-transition-group package.json) and webpack does not like this.

Steps to reproduce

  1. Create a project w/ webpack (e.g. npx create-react-app)
  2. Add something like import { Button } from '@deephaven/components'; and add the component to the app.
  3. Run npm start

Expected results

  1. Components work

Actual results

  1. Components do not work. create-react-app throws this error

image

Versions

  • Web UI Version: 0.89.0

mattrunyon avatar Aug 15 '24 21:08 mattrunyon