json-joy icon indicating copy to clipboard operation
json-joy copied to clipboard

Fails to import when using NodeNext resolution

Open arietrouw opened this issue 1 year ago • 3 comments

Setting resolution to 'NodeNext' in a tsconfig project results in load failure. 16.9.x loads correctly. The problem seems to be that subsequent dependencies do not have a .js at the end of the import (node resolution). Would be great is a esm build of this was available that works with NodeNext.

arietrouw avatar Aug 22 '24 21:08 arietrouw

image

arietrouw avatar Aug 22 '24 21:08 arietrouw

This happens when importing from 'json-joy/lib/json-patch'

arietrouw avatar Aug 22 '24 21:08 arietrouw

Did you install all peer dependencies? See https://github.com/streamich/json-joy/issues/687#issuecomment-2275455632

macmillen avatar Aug 26 '24 13:08 macmillen