Flow CLI not detecting flow.json[BUG] <title>
Current Behavior
Im trying to get the project to build, but whenever Im in the root directory and run flow emulator start I get an error stating:
🙏 Configuration is missing, initialize it with: 'flow init' and then rerun this command., even though there is a flow.json file in the root directory.
I then attempt to run flow init command as suggested by the error and then I get the following error:
❌ Command Error: configuration already exists at: flow.json, if you want to reset configuration use the reset flag
Here is my current FCL version:
Version: v0.45.1-cadence-attachments-3
Commit: 1b24e6a50e7c0e3c17e1424ef2ec1000a5a7c423
Any thoughts on how to proceed?
Expected Behavior
The flow emulator should recognize the flow.json file and run as normal.
Steps To Reproduce
- Clone project
- cd into project root
- run
flow emulator start
Environment
- OS: Mac OS 13.1 Beta
- Node: v14.18.2
- npm: 6.14.15
What are you currently working on that this is blocking?
Trying to understand how this project works for the hackathon.
Thanks for the flag @cryptobank04
As the main flow.json references two additional files, you should make sure they exist and the correct values are added/updated based on your environment and account/key info. If files referenced from flow.json don't exist you will get that warning.
You can run the following to create emulator.private.json and testnet.private.json
// copy emulator.private.json.example and testnet.private.json.example files and update with your own key data.
cp emulator.private.json.example emulator.private.json
cp testnet.private.json.example testnet.private.json