When importing @project-serum/serum, a TypeScript error comes up saying TypeError: Module "/node_modules/@project-serum/serum/lib/markets.json" needs an import assertion of type "json".
This seems to be a new issue in the latest version of Node, see this Stack Overflow issue for more info.
When importing
@project-serum/serum
, a TypeScript error comes up sayingTypeError: Module "/node_modules/@project-serum/serum/lib/markets.json" needs an import assertion of type "json"
.This seems to be a new issue in the latest version of Node, see this Stack Overflow issue for more info.