You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node - require works. import works too, but might need assert JSON.
Browser (vanilla) - fetch('./path-to-file') is simplest way that works for all browsers. FYI, import (with assert JSON) works on Chrome, but fails on Firefox or Safari.
Browser with bundlers - import data from "data.json" works fine.
require
works.import
works too, but might needassert JSON
.fetch('./path-to-file')
is simplest way that works for all browsers. FYI,import
(with assert JSON) works on Chrome, but fails on Firefox or Safari.import data from "data.json"
works fine.On web, prefer using this wrapper
The text was updated successfully, but these errors were encountered: