simone-sanfratello / json-stringify-extended

JSON.stringify any data types
17 stars 1 forks source link

How to use it with import? #8

Open totszwai opened 3 years ago

totszwai commented 3 years ago

Getting this error when trying to import it rather than require it.

Could not find a declaration file for module 'json-stringify-extended'. '/projects/blah/node_modules/json-stringify-extended/src/main.js' implicitly has an 'any' type. Try npm i --save-dev @types/json-stringify-extended if it exists or add a new declaration (.d.ts) file containing declare module 'json-stringify-extended';ts(7016)

simone-sanfratello commented 3 years ago

sorry, esm module is not supported

would you like to add it?