SocketDotTech / plugin

Seamless bridging experience into a single fully customizable React Component
https://www.npmjs.com/package/@socket.tech/plugin
MIT License
40 stars 23 forks source link

React spring: Module parse failed. Unexpected token #50

Open alonecandies opened 1 year ago

alonecandies commented 1 year ago

I embed the plugin into my app, but when I run it, it show up below image image Not sure if it is my project issue or if there is any conflict in config between two apps. FYI, my project doesn't have react-spring as a dependency and I use react version 17.0.2 Any help would be greatly appreciated! Thank you

tuvudu commented 1 year ago

@alonecandies which is your react version? I see on socket.tech docs. they required The widget is compatible with React v18+ and Node v14+.

tuvudu commented 1 year ago

@alonecandies I saw the reason is @react-springs/web. you can build custom from Socket SDK or visit https://github.com/tuvudu/SocketDotTech.plugin to see an example about removing react-spring/web.