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
Trying to reproduce flights-10m.js example using MDX #136
Comments
I can work on this issue, it will be great if I am being assigned to work on this issue. |
Feel free to work on the issue. We don't need to assign you. |
Thank you @ItsRoy69 ! @raghavbansal2005 and I are trying to figure this out -- here is a more minimal example of using this library I'm able to make: onefact/new.onefact.org@d1250f5 (added "@uwdata/vgplot": "^0.3.3" to the requirements, and used this javascript in a React component, then imported it in an mdx file). Steps:
Result: ModuleBuildError: Module build failed (from ./node_modules/.pnpm/next@13.4.8_@babel+core@7.12.9_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js): This is using the SWC rust-based compiler (https://swc.rs/) to compile the javascript into an ESM module. Any ideas on how we might debug? Thanks so much!! |
Looks like this may be an issue with top-level Added an example here with Mosaic: onefact/new.onefact.org@1519adc |
It sounds like this is an issue with next and not mosaic. I'm closing this issue then to keep our issue tracker focused. |
This library is amazing and we are starting to use it across @onefact. Thank you!! While we could get an Observable example working (https://observablehq.com/@onefact/mosaic-cross-filter-flights-10m), @raghavbansal2005 and I have been struggling to get it working on the frontend using the following steps:
mdx
file with the following contents: https://github.com/uwdata/mosaic/blob/main/docs/public/specs/esm/flights-10m.js, for example topages/flights-10m.mdx
as in this repo: https://github.com/onefact/nextra/blob/main/docs/pages/flights-10m.mdx and runpnpm install
to install dependencies:pnpm dev
Most likely this issue is due to my being a novice at all of these frameworks and libraries! (e.g. Dominik had to explain how to run a JavaScript server instead of an
index.html
file like I was trying to do 🤦 ) Thank you!!The text was updated successfully, but these errors were encountered: