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

Changelog notes: #445

Closed
kylebarron opened this issue Jan 29, 2024 · 5 comments
Closed

Changelog notes: #445

kylebarron opened this issue Jan 29, 2024 · 5 comments

Comments

@kylebarron
Copy link
Owner

kylebarron commented Jan 29, 2024

List of breaking changes:

  • Name of bundle changed from arrow1.js to parquet_wasm.js as we no longer have an arrow2 version
@matbee-eth
Copy link

matbee-eth commented Feb 16, 2024

I dont understand how to get this project imported. Documentation says arrow2, arrow1, etc. But I see no such thing. and import { readParquet } from "parquet-wasm"; returns

Cannot find module 'parquet-wasm' or its corresponding type declarations.ts(2307)

Using this in a NextJS webpack system and it most definitely does not enjoy it

I've tried copying the files directly into my project and it errors:

parquet_wasm.js:300  Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')
    at readParquet (parquet_wasm.js:300:14)
    at eval (VM949045 parquet.tsx:44:103)
    at async Promise.all (index 0)
    at async eval (VM949045 parquet.tsx:42:30)
    import { readParquet } from "parquet-wasm/bundler/parquet_wasm";

errors with the following:

Module not found: Package path ./bundler/parquet_wasm is not exported from package /home/acidhax/dev/originals/dataset-manager-nextjs/node_modules/parquet-wasm (see exports field in /home/acidhax/dev/originals/dataset-manager-nextjs/node_modules/parquet-wasm/package.json)

@kylebarron
Copy link
Owner Author

you should look at the readme for the git tag that you have installed

@kylebarron
Copy link
Owner Author

I've tried copying the files directly into my project and it errors:

that's probably because you're missing the underlying rust bundle

@matbee-eth
Copy link

I've tried copying the files directly into my project and it errors:

that's probably because you're missing the underlying rust bundle

I'm using WASM in the browser, not rust, I'm very confused.

@kylebarron
Copy link
Owner Author

When I say "rust" I mean webassembly.

Cannot read properties of undefined (reading '__wbindgen_add_to_stack_pointer')

usually means either that the Wasm bundle was not loaded or, if you're using the esm entrypoint, that the wasm was not initialized. With the esm entrypoint you need to await the default export.

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