how to migrate from react-app-rewired project

I tried to migrate a project w3a-modal-solana-react to Meteor but failed with the following error:

App.jsx:23 Uncaught TypeError: number 0 is not iterable (cannot read property Symbol(Symbol.iterator))
    at App (App.jsx:23:35)
    at renderWithHooks (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:26046:18)
    at mountIndeterminateComponent (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:29815:13)
    at beginWork (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:31328:16)
    at HTMLUnknownElement.callCallback (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:13905:14)
    at Object.invokeGuardedCallbackDev (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:13954:16)
    at invokeGuardedCallback (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:14018:31)
    at beginWork$1 (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:37192:7)
    at performUnitOfWork (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:36298:12)
    at workLoopSync (modules.js?hash=646cb024933c788761a62bd1afac0601f8cc91fd:36207:5)

Line 23 of App.tsx: const [web3auth, setWeb3auth] = useState<Web3Auth | null>(null);

package.json :

{
  "name": "ggx",
  "private": true,
  "scripts": {
    "start": "meteor run",
    "test": "meteor test --once --driver-package meteortesting:mocha",
    "test-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
    "visualize": "meteor --production --extra-packages bundle-visualizer"
  },
  "dependencies": {
    "@solana/web3.js": "^1.72.0",
    "@web3auth/modal": "^6.1.1",
    "@web3auth/slope-adapter": "^6.1.1",
    "@web3auth/solana-provider": "^6.1.1",
    "@web3auth/solana-wallet-connector-plugin": "^6.1.1",
    "@web3auth/solflare-adapter": "^6.1.1",
    "@babel/runtime": "^7.20.7",
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^14.0.0",
    "@testing-library/user-event": "^14.4.3",
    "@types/jest": "^29.5.3",
    "@types/node": "^20.4.8",
    "@types/react": "^18.2.18",
    "@types/react-dom": "^18.2.7",
    "meteor-node-stubs": "^1.2.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "typescript": "^4.9.4"
  },
  "meteor": {
    "mainModule": {
      "client": "client/main.jsx",
      "server": "server/main.js"
    },
    "testModule": "tests/main.js"
  },
  "devDependencies": {
    "@solflare-wallet/sdk": "^1.2.1",
    "@types/meteor": "^1.4.81",
    "@types/mocha": "^8.2.3",
    "@types/react": "^17.0.30",
    "@types/react-dom": "^17.0.9",
    "@walletconnect/sign-client": "^2.9.0",
    "assert": "^2.0.0",
    "buffer": "^6.0.3",
    "crypto-browserify": "^3.12.0",
    "https-browserify": "^1.0.0",
    "os-browserify": "^0.3.0",
    "process": "^0.11.10",
    "stream-browserify": "^3.0.0",
    "stream-http": "^3.2.0",
    "typescript": "^4.4.4",
    "url": "^0.11.0",
    "zlib-browserify": "^0.0.3"
  }
}

My env is: METEOR@2.13. Any Suggestion?

Sometime the line number was incorrect. I’m not saying it’s this case, but I saw it happened.