Key not found issue when using dev-deploy
See original GitHub issueDescribe the bug
Weāve got feedback from a few devs having issues with dev-deploy. (Notes from @doriancrutcher š )
When they run yarn dev from create-near-app thereās this error:
Error: Can not sign transactions for account dev-1634847735013-6188886 on network testnet, no matching key pair found in InMemorySigner(MergeKeyStore(UnencryptedFileSystemKeyStore(/Users/doriankinoocrutcher/.near-credentials),
running near dev-deploy -f and then yarn dev seems to work
To Reproduce Steps to reproduce the behavior:
-
ran
npx create-near-app --frontend=react app-name -
ran
yarnfor good measure -
ran
yarn devto try and start the prebuilt example application which in turn compiles the contract and then runsnear dev-deploy
gives me the new account in this instance dev-1634854738905-7133674
and then returns the same error
- for funzies I run
yarn startwhich returns the same error
then to make it work
- I run
near dev-deploy -fwhich creates another new dev account
and deploys the contract onto there
- then I run
yarn startand it works
Expected behavior
In the past, I would just run yarn && yarn start
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. MacOS]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)

Top Related StackOverflow Question
Nope, that just fixes the workspace package. Previously generated a cached testnet account that was 14 chars. I was able to do a dev deploy with near-cli as it generated a accountId that was 33 long. So my guess is the version of near-cli is old? It worked for me on 2.1.1
This is running in a destructible docker container where
near-cligets installed anew everytime itās created. Hence alsoroot. But I have done it in my local setup as well. Same issue, tried reinstalling multiple times. Same with my colleagues. By now, I have tried it in my two machines one linux and mac with freshly installednear-cli. Hereās a link to one of the project where it is being used, https://github.com/CreatorOS/coin-toss-game-near-mobile-version This is the exact file where it is being used https://github.com/CreatorOS/coin-toss-game-near-mobile-version/blob/main/learn_src/scripts/1.init.sh