Skip to content

originalFunc is not a function #2

Open
@brams-dev

Description

@brams-dev

I'm using mock_file@v1.0.1 with sqlite@v3.4.0 on Deno Deploy with the fresh framework. I get this error:

An error occured during route handling or page rendering. TypeError: originalFunc is not a function
    at Object.openSync (https://deno.land/x/mock_file@v1.0.1/src/polyfill.ts:120:20)
    at js_open (https://deno.land/x/sqlite@v3.4.0/build/vfs.js:29:24)
    at denoOpen (wasm://wasm/002a4c4a:1:3005)
    at sqlite3PagerSharedLock (wasm://wasm/002a4c4a:1:30327)
    at sqlite3BtreeBeginTrans (wasm://wasm/002a4c4a:1:24816)
    at sqlite3InitOne (wasm://wasm/002a4c4a:1:157318)
    at sqlite3Init (wasm://wasm/002a4c4a:1:156554)
    at sqlite3ReadSchema (wasm://wasm/002a4c4a:1:100815)
    at sqlite3LocateTable (wasm://wasm/002a4c4a:1:98255)
    at sqlite3LocateTableItem (wasm://wasm/002a4c4a:1:245062)

Running it locally works fine.

Metadata

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