Wagmi issue on Authentication

Hi!

I was following this tutorial but it gave me error on the Wagmi.

./node_modules/wagmi/dist/index.js 170:33
Module parse failed: Unexpected token (170:33)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js  
You may need an additional loader to handle the result of these loaders.
|         data
|       } = _ref3;
>       defaultedOptions.onSuccess?.(data);
|       defaultedOptions.onSettled?.(data, null);
|     }).catch(error => {

I’m not familiar with this error, did you solve it somehow?

1 Like

Yes, my bad, it was a router problem :rofl:

1 Like

Hey, I’ve been facing the same issue and have been unable to solve it, could you post your solution here?
Thanks!

Error:

./node_modules/wagmi/dist/index.js 170:33
Module parse failed: Unexpected token (170:33)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|         data
|       } = _ref3;
>       defaultedOptions.onSuccess?.(data);
|       defaultedOptions.onSettled?.(data, null);
|     }).catch(error => {

Hello, the issue was in my router. Make sure that your router works properly

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.