Closed m-alfred closed 9 months ago
can you share a repo? I've used webpack on many projects with react-spring and not ran into any issues.
It's my babel config cause the error 。 I've fixed by removing the babel plugin: babel-plugin-typescript-to-proptypes。
Then it sounds like there's nothing we can do because it's your project 😊
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.3
What's Wrong?
when i run webpack build it's ok。 but when i run webpack dev server, appear this error: react-spring Identifier 'React' has already been declared。but run 。
` ERROR in ./node_modules/@react-spring/animated/dist/react-spring_animated.modern.mjs 381:7 Module parse failed: Identifier 'React' has already been declared (381:7) File was processed with these loaders:
To Reproduce
run webpack dev-server
Expected Behaviour
no error appear
Link to repo
none