You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
1.clone the repo https://github.com/saleor/storefront.git
2. install the package run npm install
4. install web3modal npm install @web3modal/wagmi wagmi viem @tanstack/react-query
5. add the config file and the context file as per Web3Modal documentation into the folder src
you will notice an error on input if you scroll the input with the mouse
(inputasNodeJS.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.
OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 7.51 GB / 22.82 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.10.0 - /usr/local/bin/node
npm: 10.2.5 - /usr/local/bin/npm
pnpm: 8.9.0 - /usr/local/bin/pnpm
Browsers:
Brave Browser: 123.1.64.122
The text was updated successfully, but these errors were encountered:
Maltstar
changed the title
can not integrate Web3modal into saleor/storefront the input from fetch in createClient from "urql"(node_modules) error Type 'URL' is not assignable to type 'RequestInfo'
can not integrate Web3modal into saleor/storefront adding config file and context file from web3modal make the loading of checkout page fail
Apr 21, 2024
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 package
run npm install
or
1.clone the repo https://github.com/saleor/storefront.git
2. install the package
run npm install
4. install web3modal
npm install @web3modal/wagmi wagmi viem @tanstack/react-query
5. add the config file and the context file as per Web3Modal documentation into the folder
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:
The text was updated successfully, but these errors were encountered: