FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 922 forks source link

🐛 BUG: freeze when use react-chat-elements #3672

Open onldosalm opened 3 years ago

onldosalm commented 3 years ago

Quick checklist

What package manager are you using?

npm, yarn

What operating system are you using?

macOS

Describe the bug

node -v v14.17.4

yarn -v 1.22.11

npm -v 7.20.6

a react project with the react-chat-elements npm package could not build or start(run).

same code with the create-react-app project could build successful.

sample code from https://github.com/Detaysoft/react-chat-elements/tree/master/example

Steps to reproduce

  1. yarn create snowpack-app test-snowpack --template @snowpack/app-template-react

  2. replace App.js with https://github.com/Detaysoft/react-chat-elements/blob/master/example/App.js

  3. replace App.css with https://github.com/Detaysoft/react-chat-elements/blob/master/example/App.css

  4. yarn add identicon.js lorem-ipsum react-chat-elements

  5. yarn run start yarn run v1.22.11 warning package.json: No license field $ snowpack dev [20:11:20] [snowpack] Welcome to Snowpack! Because this is your first time running this project, Snowpack needs to prepare your dependencies. This is a one-time step and the results will be cached for the lifetime of your project. Please wait... [20:11:20] [snowpack] + identicon.js@2.3.3 [20:11:21] [snowpack] + lorem-ipsum@2.0.3 [20:11:21] [snowpack] + react@17.0.2 [20:11:21] [snowpack] └── object-assign@4.1.1 [20:11:21] [snowpack] + react-chat-elements@10.15.0

  6. freeze...

Link to minimal reproducible example (optional)

No response

joshgoebel commented 2 years ago

This should be fixed with d72dc7dff1cd09e9b09be68004cb9953c55386ca. Can you test with 3.8.8?