You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installing anchor should put ts-node in execution path. Otherwise, anchor migrate fails without explicit errors. Then, you have to check out the source code and take a look at what migrate function does. It is just time consuming.
% anchor migrate --provider.cluster http://127.0.0.1:8899
Running migration deploy script
Error: No such file or directory (os error 2)
The text was updated successfully, but these errors were encountered:
to make sure that ts-node is on the path
or
have better error checking where if the ts-node call fails in the CLI command, it falls back and gives a better error message.
Migrate is a new feature that I'm not familiar with but it should probably just have better error checking. It's also the only command in the CLI I can see that uses ts-node (and seemingly the only place in almost the whole repo?). ts-node is only listed as a dev dependency and not a true dependency for the anchor ts package so that could also be part of the issue?
Anyone, just writing out some notes here in case anyone wants to come along and test + fix the issue. (Or future me)
sure, so long as whatever changes are made are super limited to whatever's happening in the migrate command and the externalities are minimized, namely that it doesn't somehow mess up the config for people who aren't using the command.
installing anchor should put ts-node in execution path. Otherwise, anchor migrate fails without explicit errors. Then, you have to check out the source code and take a look at what migrate function does. It is just time consuming.
% anchor migrate --provider.cluster http://127.0.0.1:8899
Running migration deploy script
Error: No such file or directory (os error 2)
The text was updated successfully, but these errors were encountered: