LimeChain / matchstick

🔥 Unit testing framework for Subgraph development on The Graph protocol. ⚙️
MIT License
207 stars 17 forks source link

Error: thread 'main' panicked at ':sos: Internal error during compilation: No such file or directory (os error 2) #428

Closed nour-karoui closed 2 months ago

nour-karoui commented 2 months ago

I want to test my subgraph with matchstick-as and the @graphprotocol libraries. For the package manager I am using pnpm. Here is the list of my dependencies:

devDependencies:{
    "@graphprotocol/graph-cli": "^0.73.0",
    "@graphprotocol/graph-ts": "^0.35.1",
    "matchstick-as": "^0.6.0",
}

When I run graph test I get this error: thread 'main' panicked at ':sos: Internal error during compilation: No such file or directory (os error 2). However, this works fine when I use npm

image
dimitrovmaksim commented 2 months ago

For pnpm, try adding "assemblyscript": "^0.19.20" to the devDependencies

nour-karoui commented 2 months ago

I tried with "assemblyscript": "^0.19.23" and it fixed my issue thank you very much