0

I tried to create a basic setup to start practicing react-spring in CodePen, but it shows an error: Uncaught ReferenceError: require is not defined. I don't know why this happens and how to fix it.

This is the code of my app so far (as you can seee, it's super short):

https://codepen.io/Nerdifico/pen/oNxXNPv?editors=0010

Thanks in advance!

enter image description here

Arnold Gee
  • 856
  • 2
  • 8
  • 18

1 Answers1

1

Codesandbox maybe an easier option. Here is an example: https://codesandbox.io/s/jn3z28ry33

user992731
  • 3,400
  • 9
  • 53
  • 83