You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing in Node12+ with ECMAScript module support enabled
import*asjsonpatchfrom"fast-json-patch";
You won't get a compile-time error from Typescript, but you will get a runtime error when calling something like jsonpatch.applyPatch stating that the method does not exist.
Because it is defined as a default export, it should be imported like:
importjsonPatchfrom"fast-json-patch"
Note that I changed the casing as well so that the IDE doesn't complain about spelling.
The text was updated successfully, but these errors were encountered:
When importing in Node12+ with ECMAScript module support enabled
You won't get a compile-time error from Typescript, but you will get a runtime error when calling something like
jsonpatch.applyPatch
stating that the method does not exist.Because it is defined as a default export, it should be imported like:
Note that I changed the casing as well so that the IDE doesn't complain about spelling.
The text was updated successfully, but these errors were encountered: