-
Notifications
You must be signed in to change notification settings - Fork 114
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
not working examples for bare-browser and esbuild-browser #438
Comments
Thanks for giving it a try! What errors are you getting? What environment are you working in? |
The examples are built with our CI and should work. E.g. the bare browser example copies the wasm modules here: duckdb-wasm/examples/bare-browser/bundle.mjs Lines 8 to 13 in 2a24868
You'd have to point this to something like ./node_modules/@duckdb/duckdb-wasm/dist instead.
|
We could maybe make the examples independent of the monorepo at some point. |
Hey Alex and ankoh thanks for answering. @Alex-Monahan @ankoh and again thank you for your help! |
You are still running the example in the monorepo. Copy the example folder out of the monorepo yarn workspace, fix the path and run npm install in the example folder. The monorepo has it's yarn workspace node_modules at the root of the project which won't work as is. |
Ah alternatively, you can do the following to run the examples in the monorepo:
This will copy the published dist folder from npm. |
Closing this for now since this works as intended. We could track react examples in a dedicated issue. |
Did you install version 1.11.1-dev54.0 in the package.json? |
"@duckdb/duckdb-wasm": "^1.11.0" I have tried with both of these versions, but I get the same error. |
when I try to run examples for those two projects ( bare-browser and esbuild-browser), I get errors. I cloned whole project and tried to run it.
Can someone give more info about it?
Also, can someone point me to working example for react and vanilla JS front-end project?
The text was updated successfully, but these errors were encountered: