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

Nuxt 2.0 build failing due to apache-arrow exports #294

Open
marr opened this issue Sep 22, 2022 · 6 comments
Open

Nuxt 2.0 build failing due to apache-arrow exports #294

marr opened this issue Sep 22, 2022 · 6 comments

Comments

@marr
Copy link

marr commented Sep 22, 2022

I am trying to import arquero into my nuxt v2 project. This is a client-only project, so ESM is being used directly.
The errors I see are around apache-arrow:

ERROR in ./node_modules/apache-arrow/ipc/metadata/file.mjs
Can't import the named export 'Builder' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/apache-arrow/ipc/metadata/file.mjs
Can't import the named export 'ByteBuffer' from non EcmaScript module (only default export is available)

That is when I import like this:
import { from, op } from 'arquero'

@jheer
Copy link
Member

jheer commented Sep 22, 2022

Hmm. Not sure offhand what is driving the issue, as it appears at first glance to stem from Apache Arrow. In the meantime, you might consider filing an issue with the Arrow folks if you can isolate and replicate the issue outside of Arquero. I'll also flag @domoritz in case he has any insights.

@domoritz
Copy link
Member

I don't know what's causing this issue but would be happy to look into it if you can isolate it to arrow.

@marr
Copy link
Author

marr commented Sep 22, 2022

@domoritz Thanks for taking a look. Here is a barebones repro of what I'm seeing:
https://github.com/marr/arrow-webpack

If you pull that down, and do:

npm install
npx webpack

You will see what I'm seeing:

ERROR in ./src/index.mjs 14:17-32
Can't import the named export 'tableFromArrays' from non EcmaScript module (only default export is available)

Likely a webpack v4 thing, but maybe worth investigating. Thanks! And thanks @jheer for the quick response.

@domoritz
Copy link
Member

We do test webpack in https://github.com/apache/arrow/blob/53b19a9e3fda0c71d8c0f6d5165caa573fb99a80/js/gulp/bundle-task.js#L99. However, it looks like the latest version is 5 and the repo is testing 4. Can you update webpack and try again?

@marr
Copy link
Author

marr commented Oct 11, 2022 via email

@domoritz
Copy link
Member

I see. I won't have the cycles to fix this myself but I'd be happy to review a pull request in arrow.

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

3 participants