observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.41k stars 110 forks source link

"Analyzing web logs" example page is erroring #1463

Closed franloza closed 3 months ago

franloza commented 3 months ago

Hi! 👋

It seems the Analyzing web logs example page is failing:

image

All the charts return the same error:

RuntimeError: import.meta.resolve is not a function. (In 'import.meta.resolve("../_npm/parquet-wasm@0.6.1/esm/parquet_wasm_bg.wasm")', 'import.meta.resolve' is undefined)

I built the example locally with the current main branch (41f874c93bab2bce9db9b373a7144d2bf7ca5835) and it's working, so it could be just a matter of rebuilding the page.

image
franloza commented 3 months ago

Hi again!

I re-opened the website in private browsing (I use Safari Version 16.3 (18614.4.6.1.6)) and it's working, so the problem was on my end.

I'm closing the issue.

mbostock commented 3 months ago

Here’s the compatibility table for import.meta.resolve:

Screenshot 2024-06-14 at 5 46 15 AM
franloza commented 3 months ago

Hey @mbostock, thank you for the answer.

I forgot to point out that it worked on private browsing using Chrome 125.0.6422.142 (both locally and live versions). Anyway, the problem was on my end as I used an incompatible version of Safari (16.3), so there's nothing to fix here.

Thanks again!