Closed claide closed 2 months ago
Hi @claide!
You use the outdated version of the module. You need to upgrade to 2.0.7, then you can use preset. This should fix the problem and your code will become much simpler. You can see an example here - https://codepen.io/ulitcos/pen/zYbbPXB
Hello, I suddenly got this error when I run build. I use the ff:
_Type error: Type '(confetti: confetti.CreateTypes | null) => void' is not assignable to type '(confetti: import("/Users/francis/web/sample/node_modules/react-canvas-confetti/nodemodules/@types/canvas-confetti/index").CreateTypes | null) => void'.
This is the component