Skip to content

wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'. #393

@hoogw

Description

@hoogw

I run into error:

        `wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

        falling back to ArrayBuffer instantiation

`

here is my code

                   ` config = {
                                                          locateFile: (filename, prefix) => {
                                                            console.log(`prefix is : ${prefix}`);
                                                            return `/public/utility/sqljs/${filename}`;
                                                          }
                                                        }



                                                        // The `initSqlJs` function is globally provided by all of the main dist files if loaded in the browser.
                                                        // We must specify this locateFile function if we are loading a wasm file from anywhere other than the current html page's folder.
                                                        initSqlJs(config).then(function(SQL){`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions