i am trying to integrate the browser wallet into a react front end (following the fuel wallet API docs - API | Fuel Wallet). The property ‘fuel’ can not be accessed with window.fuel.connect();
imports are
import Fuel from ‘@fuel-ts/wallet’;
import { Wallet } from “fuels”;
i have included the relevant fuel sdk imports in the tsconfig.json file and installed the relevant dependencies.
The window.fuel object can be undefined for a couple of milliseconds before it’s accessible. This happens because the fuel injection happens after the page scripts, like your react app, are loaded.
Sorry I asked for the version of the wrong dependency. What is your version of @fuel-wallet/sdk ? Also could you send your tsconfig just so we can double check it