Cannot connect front-end template to node-template in Substrate

421 views Asked by At

So, I installed everything as directed in the documentation, both the node-template and front-end template. Then, I went on to run ./target/release/node-template --dev --tmp in the node-template directory, which worked fine and was able to produce blocks. After opening a new terminal and moving to the front-end template, I used the command yarn start. This didn't produce any error and I was redirected to https://localhost:8000/front-end-template. The site took too much time to load and I was not able to see the Polkadot UI. Looks like the front end could not be integrated with the node-template. Any help would be much appreciated.

1

There are 1 answers

0
Thandile Nododile On

In the front-end template directory while the node-template is running,

  • run yarn install and after everything works well then yarn start
  • OR, remove the front-end template and clone a new one if you didn't make significant changes to old one.
  • OR, stop the node-template and run this command ./target/release/node-template purge-chain then start the front-end.

I used do these and get this problem fixed, quickly!