Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

After running on flutter web : Cannot read properties of undefined (reading 'getVersion') #114

Description

@shabaadh

I've properly done setup of both WASM and ASM.js, after running in chrome, this is the error :

The following JSNoSuchMethodError was thrown building Builder:
TypeError: Cannot read properties of undefined (reading 'getVersion')

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.19.0-0.4.pre, on macOS 12.6.7 21G651 darwin-x64, locale
en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.86.0)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

installed wasm-pack and binaryen successfully with no issues.

$ make -C lib ../target/test/wasm.stamp - command executed fully successfully

$ make -C lib ../target/test/asmjs.stamp. - command not success :
make: *** No rule to make target `../target/test/asmjs.stamp'. Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions