Closed omrilotan closed 3 months ago
Import of JSON modules have changed
Old:
import patterns from "../../src/patterns.json" assert { type: "json" };
New (node 22):
import patterns from "../../src/patterns.json" with { type: "json" };
see https://nodejs.org/api/esm.html#import-attributes
Use file load to bridge version gap
Issue
Import of JSON modules have changed
Old:
New (node 22):
see https://nodejs.org/api/esm.html#import-attributes
Solution:
Use file load to bridge version gap