Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Crash] TypeError: useSharedI18N is not a function #6132

Closed
vaimeo opened this issue Apr 22, 2022 · 7 comments
Closed

[Crash] TypeError: useSharedI18N is not a function #6132

vaimeo opened this issue Apr 22, 2022 · 7 comments
Assignees

Comments

@vaimeo
Copy link

vaimeo commented Apr 22, 2022

I was opening the token list on swap click, then Mask reports an error.

(0 , masknet_shared__WEBPACK_IMPORTED_MODULE_3_.useSharedI18N) is not a function

image

Error stack:

TypeError: (0 , _masknet_shared__WEBPACK_IMPORTED_MODULE_3__.useSharedI18N) is not a function
  at SelectTokenDialog (../shared/src/contexts/evm/TokenPicker/SelectTokenDialog.tsx:63:77)
  at renderWithHooks (npm:react-dom/cjs/react-dom.development.js:16141:18)
  at mountIndeterminateComponent (npm:react-dom/cjs/react-dom.development.js:20833:13)
  at beginWork (npm:react-dom/cjs/react-dom.development.js:22337:16)
  at beginWork$1 (npm:react-dom/cjs/react-dom.development.js:27214:14)
  at performUnitOfWork (npm:react-dom/cjs/react-dom.development.js:26387:12)
  at workLoopSync (npm:react-dom/cjs/react-dom.development.js:26298:5)
  at renderRootSync (npm:react-dom/cjs/react-dom.development.js:26266:7)
  at recoverFromConcurrentError (npm:react-dom/cjs/react-dom.development.js:25684:20)
  at performSyncWorkOnRoot (npm:react-dom/cjs/react-dom.development.js:25930:20)

Build info

  • Version: 2.6.0
  • NODE_ENV: development
  • target: chromium
  • build: stable
  • architecture: web
  • BUILD_DATE: 2022-04-22T22:57:42.640Z
  • VERSION: v1.29.12-2299-g41f66330d-dirty

Git (*):

41f6633 (develop) on tag "v2.5.0"
git@github.com:vaimeo/Maskbook.git

@developerfred
Copy link
Contributor

@vaimeo Did you try to build with the latest version of the development environment?

@vaimeo
Copy link
Author

vaimeo commented Apr 23, 2022

No I didn't tried it yet, I tried pnpm start command.

@vaimeo
Copy link
Author

vaimeo commented Apr 23, 2022

After build it has the same problem as seen below.
image

@Jack-Works
Copy link
Member

Which commit are you on?

@septs septs changed the title [Crash] TypeError: (0 , _masknet_shared__WEBPACK_IMPORTED_MODULE_3__.useSharedI18N) is not a function [Crash] TypeError: (0 , (...).useSharedI18N) is not a function Apr 24, 2022
@septs septs changed the title [Crash] TypeError: (0 , (...).useSharedI18N) is not a function [Crash] TypeError: useSharedI18N is not a function Apr 24, 2022
@vaimeo
Copy link
Author

vaimeo commented Apr 25, 2022

Which commit are you on?

Latest dev commit

@Jack-Works
Copy link
Member

Jack-Works commented Apr 25, 2022

I would suggest you try the following command:

First, stop all commands, then run:

pnpm prune
npx gulp clean

@vaimeo
Copy link
Author

vaimeo commented Apr 25, 2022

Thanks @Jack-Works that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants