Issue
I'm running node.js v17.2.0 and TypeScript v4.5.4. I'm trying to use structuredClone() on a Map, and it doesn't seem to be working. ES2021 is targeted in tsconfig.json, and included in lib. Is this function just plain not available in TypeScript? Is there something else I need to include to get it?
@types/node is also installed, and I've made sure that it works in node.js environment.
Solution
structuredClone is now present in @types/node v17.0.29:
npm i --save-dev @types/node@17.0.29
Answered By - Josh

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.