Fork me on GitHub
#shadow-cljs
<
2021-08-03
>
zendevil.eth13:08:52

I’m facing this error upon compilation after I deleted node_modules and package-lock.json, and did npm i:

zendevil.eth13:08:08

Compilation failed!
The required JS dependency "readable-stream/writable.js" is not available, it was required by "node_modules/stream-browserify/index.js".

Dependency Trace:
	humboi/app.cljs
	humboi/core.cljs
	humboi/events.cljs
	node_modules/@alch/alchemy-web3/dist/cjs/index.js
	node_modules/web3/lib/index.js
	node_modules/web3-eth/lib/index.js
	node_modules/web3-eth-accounts/lib/index.js
	node_modules/crypto-browserify/index.js
	node_modules/create-hash/browser.js
	node_modules/cipher-base/index.js
	node_modules/stream-browserify/index.js

Ryan Jerue15:08:27

If you look inside of your node_modules/readable-stream folder, can you find the writable.js in there? There may be a version mismatch between what stream-browserify expects and what you have installed.

zendevil.eth13:08:16

I did do npm i -s readable-stream

zendevil.eth13:08:53

After doing npm i stream-browserify:

thheller17:08:45

@ps install shadow-cljs in the project

thheller17:08:06

if you have that then the error is a dependency conflict somewhere

zendevil.eth17:08:17

Okay it’s the latter I think