After using lastest @fuels/connectors and fuels sdk, our full-chain game is very smoothly.
But we still have to point out two hidden problems. The first one is when compiling, there are more than 500 warnings related to @fuels/connectors, similar to the following:
WARNING in ./node_modules/@web3modal/wallet/dist/esm/src/W3mFrameStorage.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\@web3modal\wallet\src\W3mFrameStorage.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\@web3modal\wallet\src\W3mFrameStorage.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\error.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\error.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\struct.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\struct.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\coercions.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\coercions.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\refinements.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\refinements.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\types.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\types.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\utilities.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\structs\utilities.ts'
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\React\fuel_game_v2\node_modules\superstruct\src\utils.ts' file: Error: ENOENT: no such file or directory, open 'D:\React\fuel_game_v2\node_modules\superstruct\src\utils.ts'
The second problem is that when the page is refreshed multiple times, two errors will be reported. In this scenario, we used https://connectors.fuel.network/ to test, and the same error was happened.
index.mjs:7 Uncaught (in promise) Error: Method not found
at new n (index.mjs:7:76)
at e.<anonymous> (index.mjs:7:76)
at index.mjs:7:76
at Object.next (index.mjs:7:76)
at s (index.mjs:7:76)
index.mjs:7 Uncaught (in promise) Error: Connection not established. Please call connect() first to request a connection
at new n (index.mjs:7:76)
at e.<anonymous> (index.mjs:7:76)
at index.mjs:7:76
at Object.next (index.mjs:7:76)
at s (index.mjs:7:76)