Skip to content

CompileError: WebAssembly.instantiate(): invalid value type 'externref' #896

Open
@gareia

Description

Hi, I couldn't find a similar issue, I'd really appreciate it if you could help me.

When running npm run dump I get the following error CompileError: WebAssembly.instantiate() invalid value type 'externref', enable with --experimental-wasm-reftypes @+166

error

I'm using Windows 10. Below is my package.json. I initially thought the issue might be related to the requirements.txt, but even just including Streamlit generates the same error. Additionally, it may be worth mentioning that my default browser was Brave but I changed it to Chrome, however, when opening a new terminal I kept encountering the same error. Thank you for your time.

{
    "name": "xxxxxxxxxxx",
    "version": "0.1.0",
    "main": "./build/electron/main.js",
    "scripts":{
        "dump": "dump-stlite-desktop-artifacts",
        "serve": "cross-env NODE_ENV=production electron .",
        "serveWindows": "electron .",
        "pack": "electron-builder --dir",
        "dist": "electron-builder",
        "postinstall": "electron-builder install-app-deps"
    },
    "build":{
        "files": ["build/**/*"],
        "directories": {
            "buildResources": "assets"
        }
    },
    "devDependencies": {
        "@stlite/desktop": "0.54.0",
        "cross-env": "7.0.3",
        "electron": "30.0.1",
        "electron-builder": "24.13.3"
    },
    "stlite":{
        "desktop":{
            "files": ["aa/bb.py"],
            "entrypoint": "aa/bb.py",
            "requirementsTxtFiles": ["requirements.txt"]
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions