Replies: 3 comments 4 replies
|
Facing the same issue |
0 replies
|
@elwin212 The code you provided is invalid: "SQLite" is not defined. When I fixed that it worked fine for me. Perhaps your problem has something to do with Vite, or some other build/deploy step? |
3 replies
|
@elwin212 @rscalderon here is how to correctly use OPFSCoopSyncVFS with Vite. Put this in a worker. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, thanks for the great project!
I’ve been trying to use
OPFSCoopSyncVFSand have been following the example here.However, I keep getting an error when opening the database.
I'm running in a worker context and using
Comlinkto communicate with the web worker and Vite. I’m able to successfully useAccessHandlePoolVFSto persist data in the browser, but I just can’t seem to get theOPFSCoopSyncVFSworking.The error message looks like this:
After doing some debugging, I logged the
OPFSCoopSyncVFSinstance and noticed that lastError shows:Error: File /%E0%B2%80 not found at OPFSCoopSyncVFS.jOpen.The
zNameit pass to thexOpenmethod isಀwhich is%E0%B2%80.No matter what file name I pass in, I always get the same error message.
When I inspect the file system I can see it create
.ahp-random-stringbut it didn't create files like thewa-sqliteexample such ashello/hello-journal/hello-wal.Also, when I log the
flagsin thejOpenmethod, it's anProxy(DataView)not thenumber.Any guidance on how to get this working would be much appreciated!
All reactions