jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Unable to import this library in my project!?

Open brandoncollins7 opened this issue 5 months ago • 8 comments

When I import the latest version import jsondiffpatch from 'jsondiffpatch' I get this error..... super freaking wierd I've never seen anything like this.

require() of ES Module C:\Users\brand\Documents\Projects\atlantic-dawn-monorepo\node_modules\.pnpm\[email protected]\node_modules\jsondiffpatch\lib\index.js from C:\Users\brand\Documents\organization-api\src\api\handlers\handler.js not supported.\nInstead change the require of index.js in C:\Users\brand\Documents\handler.js to a dynamic import() which is available in all CommonJS modules.","ecs":{"version":"1.5.0"},"name":"RethrownError","original":{"code":"ERR_REQUIRE_ESM"}}

brandoncollins7 avatar Feb 16 '24 22:02 brandoncollins7