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

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

Open
gareia opened this issue May 5, 2024 · 2 comments
Open

Comments

@gareia
Copy link

gareia commented May 5, 2024

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"]
        }
    }
}
@whitphx
Copy link
Owner

whitphx commented May 14, 2024

Unfortunately I don't have access to Win10 env and can't reproduce the error now.

@gareia
Copy link
Author

gareia commented May 15, 2024

Hi, thank you for answering My requirements.txt:

streamlit
sqlalchemy
plotly
pyodbc

I got a new error related to pyodbc, it looks like it is not supported by pyodide :( By any chance, do you happen to know about it?
error_pyodide_pyodbc

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

2 participants