just
switch to the webshop branch
execute npm install
then the error is located in /src/checkout/Root.tsx
Summary
When adding the config file and the context file as per Web3Modal documentation after installing web3modal into the saleor storefront, the call to createClient from "urql"(node_modules) does not work anymore in src/checkout/Root.tsx as result the checkout page can not be loaded
Error:
Argument of type
'import("ethGlobal/2024/04/Grouponweb3/Shop/test4/eCoupon-ScalingEth24/node_modules/undici-types/fetch").
RequestInfo' is not assignable to parameter of type 'RequestInfo'.
Type 'URL' is not assignable to type 'RequestInfo'.
Type 'URL' is missing the following properties
from type 'Request': cache, credentials, destination, headers, and 17 more.ts(2345)
fetch: (input , init) => saleorAuthClient.fetchWithAuth(input as NodeJS.fetch.RequestInfo, init),
you will notice an error on input if you scroll the input with the mouse
(input as NodeJS.fetch.RequestInfo)
Error:
Argument of type
'import(saleor/storefront/node_modules/undici-types/fetch").
RequestInfo' is not assignable to parameter of type 'RequestInfo'.
Type 'URL' is not assignable to type 'RequestInfo'.
Type 'URL' is missing the following properties
from type 'Request': cache, credentials, destination, headers, and 17 more.ts(2345)
as a result the checkout page is not loaded.
It seems that adding the files src/config/index.tsx and src/context/index.tsx triggers a change of type of the input parameter of the fetch function in createClient(), somehow the input is not anymore from RequestInfo type but has the URL type now.
Summary
Link to minimal reproducible example
Summary
When adding the config file and the context file as per Web3Modal documentation after installing web3modal into the saleor storefront, the call to createClient from "urql"(node_modules) does not work anymore in
src/checkout/Root.tsx
as result the checkout page can not be loadedpackage.json
Steps to reproduce
1.clone the repo https://github.com/Hack-Projects-n-Teams/eCoupon-ScalingEth24.git and switch to the branch
webshop
2.install the packagerun npm install
or
1.clone the repo https://github.com/saleor/storefront.git
run npm install
npm install @web3modal/wagmi wagmi viem @tanstack/react-query
src
then
you will notice an error on input if you scroll the input with the mouse
as a result the checkout page is not loaded. It seems that adding the files src/config/index.tsx and src/context/index.tsx triggers a change of type of the input parameter of the fetch function in createClient(), somehow the input is not anymore from RequestInfo type but has the URL type now.
A link to a reproduction repository
https://github.com/Hack-Projects-n-Teams/eCoupon-ScalingEth24.git
Output from envinfo
System:
Binaries:
Browsers: