I am a newbie and experiencing same issue.
Using tutorial [https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup].
Successfully installed Node.js and Yarn - Launched the front-end-template (stated in the above link) in root directory, although I receive an error message in browser [Error Connecting to Substrate [object Event].
I have looked online for solution, but no success.
Would appreciate advice on where I'm going wrong also how to solve issue.
Edit config file here:
./src/config/development.json
replace 127.0.0.1 with your IP address
yarn start and now system working.
Solved - I found that I can open multiple console windows (Visual Studio Code) from the dropdown 'default shell' - The 1st window ‘cd substrate-node-template/ ‘and run ‘cargo build –release’. In 2nd window ‘cd substrate-front-end template’ and run ‘start yarn’. I can connect to web page [localhost:8000/] and view information about the chain.
Thanks for your advice!
The front-end-template won't display anything unless a Substrate compatible chain node is running. In this case it should be the Substrate Node template running on the same machine where you are running the front-end.
You should first build your node-template with cargo build --release and then execute the binary ./target/release/node-template --dev. This will start the Substrate node to which your front-end-template should connect.
Related
Compilation successfully while running the command npm run watch on compute engine ubuntu terminal but no changing effects. I use the Larave+Vue project hosted on the Ubuntu VM instance on GCP. I search much time for this issue but not able to find any solution. I found a similar problem on StackOverflow but there is no answer to solve my problem. Please check the link below:
I am using Putty to run and compile vue js + laravel app on Godaddy VPS. Changes are not taking effect
Please help...
Thanks in advance.
Maybe try npm run watch-poll instead, on certain systems watch doesn't trigger changes but wacth-poll will periodically checks (polls) for changes.
I am trying to install ghost on a windows server and serve it with IIS but I couldn't find an official document for it and every unofficial document way gets an error at last and don't work properly I try one of them here
but at last I get the following error:
any solution or complete tutorial about it?
I am a beginner to Angular2.
This is the article I was following:
https://scotch.io/tutorials/mean-app-with-angular-2-and-the-angular-cli
Tl;dr: ng new app, ng serve, npm install express etc, create server files, ng build and finally node express.js to serve index.html from dist
My problem with the app build in this article is that it serves from dist which means I would have to stop the server, run a new build and restart the server on every change which is quite cumbersome from pov of a developer. I want my changes to the client side to be reflected on each refresh.
Can someone point me in the right direction so as to achieve this? Or let me know how to to get the architecture right even if it means starting from scratch
PS:I have been trying to modify this example to serve from development (src/) however so far am unsuccessful. The browser is unable to find dependencies, shows the "loading.." throws errors like "System is not defined" and "Syntax error '<'.
I understand your pain point. I've seen this tutorial and its fair up to some extent, but as you said there is no auto-refresh script written for changes. However, I have then decided to create my own repository for the MEAN stack project development. Check the following URL where I hosted my MEAN app including
browser-sync
gulp
nodemon
https://github.com/darpanpathak/MEAN2-MarvelApp
This repository will help you a lot for starting MEAN stack application with angular2.
thumbs up if you are looking for the same.
Tl;dr: ng new app, ng serve, npm install express etc, create server
files, ng build and finally node express.js to serve index.html from
dist
To make webpack to watch your changes during development you just have to add --watch when you build your app. So you should type something like this in a console terminal:
ng build --watch
And then run your server:
node server.js
That should work.
I came across this problem as well, so I wrote a little post about it.
You can find the detailed solution here.
In summary, what worked for me is to use different ports for the server and client, and configure my npm start command to run both server & client in parallel.
You will have hot reloading (when you change the client code, it will refresh the web browser instantly), and the web page will call your server API.
BTW, I couldn't make ng build --watch to work, so I had to think about this workaround.
Something is broken on https://dev.modern.ie/tools/vms/
After selecting the VM that I want to download, the links do not appear...
And there is a js error in my console log...
ReferenceError: i18n is not defined
I am experiencing the same issue.
I have found this gist with the direct links to the downloads:
https://gist.github.com/zmwangx/e728c56f428bc703c6f6
Only mac links but maybe the others can be built from the structure.
This Github project has the VMs available through a bash script. I'm trying to download one now, and it appears to be working. Appears to work on multiple platforms.
This is fixed since around 7.00am PST.
The issue was a missing file in the CDN that didn't get pushed (i18next\i18next.js).
My Xcode bot integrations fail with the following error.
Assertion: Running task was terminated because it produced no activity for too long.
From the bottom of the log:
Sampling completed, processing symbols...
Sample analysis of process 4470 written to file /Library/Developer/XcodeServer/Integrations/Integration-ef7a2c98cd2307fc71923f1123ea23f7/4470.sample
sample[5774]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
sample[5775]: sample cannot find any existing process you have access to which has a name like 'ibtool'; try running with `sudo`.
sample[5776]: sample cannot find any existing process you have access to which has a name like 'ibtoold'; try running with `sudo`.
** BUILD INTERRUPTED **
Interestingly, the integrations worked the day before and started failing today without any known changes to the server configuration. Is there a way to fix those errors and make the integrations run?
OS X 10.11 (15A244d), Xcode 7.0 (7A176x), OS X Server 4.1.56 (15S2186i)
This did the trick for us when we ran into the same issue today:
https://stackoverflow.com/a/22637896/43996
Created a new bot with exact configuration and that did the trick for me. Stackoverflow xcode-server-ibtool-build-failures
I created a new simple project to test Xcode Bot and the same problem happened.
I have try several ways including allow all items to access keychain, however, it didn't work until I unchecked the Code coverage.