microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.94k stars 598 forks source link

[api-extractor] JSON import assertions #5005

Closed mkilpatrick closed 1 hour ago

mkilpatrick commented 4 hours ago

JSON import assertions using assert is deprecated and should use with now, but results in an error.

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 |
mkilpatrick commented 1 hour ago

This was an issue with a not-up-to-date version for prettier.