ceramicnetwork / js-ceramic

Typescript implementation of the Ceramic protocol
http://ceramic.network
Other
414 stars 127 forks source link

can't use webpack with @ceramicnetwork/http-client #2908

Closed kenshyx closed 1 year ago

kenshyx commented 1 year ago

Describe the bug I have an application which uses the @composedb/client. It seems that this package depends on @ceramicnetwork/http-client which uses @ceramicnetwork/stream-model > @ceramicnetwork/codecs

I'm not able anymore to pack my application using webpack after @ceramicnetwork/codecs updated to v1.6.0.

ERROR in ../node_modules/@ceramicnetwork/codecs/lib/ipld.js 3:0-43
Module not found: Error: Can't resolve 'cartonne' in '/node_modules/@ceramicnetwork/codecs/lib'

Ceramic versions "@ceramicnetwork/codecs": "^1.6.0"

Machine, OS, browser information (please complete the following information): Fedora Linux 38

kenshyx commented 1 year ago

It looks like there is an unmerged patch which ensures that the @ceramicnetwork/http-client can be packed with webpack https://github.com/ceramicnetwork/js-ceramic/pull/2674

kenshyx commented 1 year ago

The version 1.6.1 fixes the missing import for @ceramicnetwork/codecs but there is still a problem with the package cartonne

ERROR in ../node_modules/cartonne/dist/block.js 1:0-58
Module not found: Error: Default condition should be last one

ERROR in ../node_modules/cartonne/dist/serde/decoding.js 1:0-57
Module not found: Error: Default condition should be last one

ERROR in ../node_modules/cartonne/dist/serde/encoding.js 3:0-57
Module not found: Error: Default condition should be last one

ERROR in ../node_modules/cartonne/dist/serde/encoding.js 4:0-58
Module not found: Error: Default condition should be last one
kenshyx commented 1 year ago

will be fixed after https://github.com/ukstv/varintes/pull/2

kenshyx commented 1 year ago

fixed in https://github.com/ukstv/varintes/releases/tag/v2.0.5