Closed mkilpatrick closed 1 hour ago
JSON import assertions using assert is deprecated and should use with now, but results in an error.
assert
with
Error: packages/yext-function/manifest.ts: SyntaxError: ';' expected. (1:40) Error: > 1 | import manifest from "./manifest.json" with { type: "json" }; Error: | ^ Error: 2 | Error: 3 | export type Manifest = { Error: 4 | /** A map of feature name to the server path of the feature */ Error: packages/yext-function/mod.ts: SyntaxError: ';' expected. (1:40) Error: > 1 | import manifest from "./manifest.json" with { type: "json" }; Error: | ^ Error: 2 | Error: 3 | const templateRendererCache = new Map(); Error: 4 |
This was an issue with a not-up-to-date version for prettier.
JSON import assertions using
assert
is deprecated and should usewith
now, but results in an error.