ton-org / blueprint

TON development for professionals - all-in-one tool for writing, testing and deploying smart contracts
475 stars 95 forks source link

Exception when running "blueprint run" command in version 0.22 #139

Closed maqicheng123 closed 1 month ago

maqicheng123 commented 4 months ago

I'm using version 0.22 and when run the command "blueprint run" get the following error: TypeError: Cannot read properties of undefined (reading 'slice') Roll back to 0.21 to use this command normally. I looked at the problem in the package and found that there was a problem with the optimized findScripts function.

HanYinBingReXue commented 3 months ago

Saved my life! Thank you !

Brand151 commented 3 months ago

Saved my life! Thank you !

LidamaoHub commented 2 months ago

nice! thank you!

Shumnijkot commented 2 months ago

Why close? They still haven't rolled new version out. And ppl will have problem when creating ton@latest

nickshatilo commented 2 months ago

the issue is related to node.js dirent.path property which was added in 18.17 version and in 20.1.0, but later it was deprecated.

as a workaround just use node versions supporting this api and it will work.

https://nodejs.org/api/fs.html#direntpath