I don't know if this has happened to anybody else, but on my Angular 5 project, I ran npm install in a new clone of my project, and it installed json8-patch@0.4.0 and json8-pointer@0.7.0, json8-patch stopped working, at least for .add() and .apply() operations.
At first it gave walk is not a function errors in add.js, because walk(), which is imported from json8-pointer, was not exported in the json8-pointer@0.7.0 index.js file. After I fixed that, however, it still didn't work, because apparently the walk function has been changed to use the import @fuba/walk in json8-pointer@0.7.0, and that walk function works differently than the built-in walk function that existed in json8-pointer@0.5.0. And apparently if you have both json8-patch and json8-pointer installed in your project, json8-patch will use the already-installed json8-pointer instead of its own "json8-pointer": "^0.5.0" dependency.
I don't know if this has happened to anybody else, but on my Angular 5 project, I ran
npm install
in a new clone of my project, and it installedjson8-patch@0.4.0
andjson8-pointer@0.7.0
, json8-patch stopped working, at least for.add()
and.apply()
operations.At first it gave
walk is not a function
errors inadd.js
, becausewalk()
, which is imported fromjson8-pointer
, was not exported in thejson8-pointer@0.7.0
index.js file. After I fixed that, however, it still didn't work, because apparently the walk function has been changed to use the import@fuba/walk
injson8-pointer@0.7.0
, and that walk function works differently than the built-in walk function that existed injson8-pointer@0.5.0
. And apparently if you have bothjson8-patch
andjson8-pointer
installed in your project,json8-patch
will use the already-installedjson8-pointer
instead of its own"json8-pointer": "^0.5.0"
dependency.