project-serum / serum-ts

Project Serum TypeScript monorepo
https://projectserum.com
Apache License 2.0
270 stars 245 forks source link

Module needs an import assertion in latest Node version #210

Open MaticConradi opened 2 years ago

MaticConradi commented 2 years ago

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.