Somewhere you are importing package.json and trying to use some of it's properties.
Per: Fully Stacked:
"For security reasons (a file extension alone is not a reliable enough indicator of the content type) you have to specify the type using with {type: "json"}."
so instead use (for example):
import pkg from "./package.json" with { type: "json" };
Note also the comment above and consider handling the case where the file (package.json in this example) is missing.