Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start UI #27

Open
feldim2425 opened this issue Sep 9, 2021 · 3 comments
Open

Can't start UI #27

feldim2425 opened this issue Sep 9, 2021 · 3 comments

Comments

@feldim2425
Copy link

feldim2425 commented Sep 9, 2021

Following the README leads to a npm error before the UI can start.

> @syn/[email protected] start /home/feldi/Downloads/syn
> cross-env HC_PORT=$(port) concurrently -k "npm run dev:libs" "npm run start:happ" "npm run dev -w syntext"

[1] 
[1] > @syn/[email protected] start:happ /home/feldi/Downloads/syn
[1] > npm run build:happ && hc s generate -r=$HC_PORT dna/workdir/happ/syn.happ -a syn network --bootstrap https://bootstrap-staging.holo.host/ quic
[1] 
[0] 
[0] > @syn/[email protected] dev:libs /home/feldi/Downloads/syn
[0] > concurrently -k "npm run build:watch -w @syn/zome-client" "npm run build:watch -w @syn/store" "npm run build:watch -w @syn/elements"
[0] 
[2] npm ERR! missing script: dev
[2] 
[2] npm ERR! A complete log of this run can be found in:
[2] npm ERR!     /home/feldi/.npm/_logs/2021-09-08T09_55_09_009Z-debug.log
[2] npm run dev -w syntext exited with code 1
--> Sending SIGTERM to other processes..
[0] npm run dev:libs exited with code SIGTERM
--> Sending SIGTERM to other processes..
[1] npm run start:happ exited with code SIGTERM
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @syn/[email protected] start: `cross-env HC_PORT=$(port) concurrently -k "npm run dev:libs" "npm run start:happ" "npm run dev -w syntext"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @syn/[email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I'm using nix-shell 2.3.15.
For installation I followed the holochain developer guide: https://developer.holochain.org/install/

@feldim2425 feldim2425 changed the title Can Can't start UI Sep 9, 2021
@guillemcordoba
Copy link
Collaborator

guillemcordoba commented Sep 9, 2021

Hi @feldim2425 :)

Are you running this in the nix-shell provided by this repo?

You can access it by running nix-shell . inside the root folder of this repo.

@feldim2425
Copy link
Author

feldim2425 commented Sep 16, 2021

I have rebuilt the environment / started another nix-shell with nix-shell .
But it still fails with a similar error:

[nix-shell:~/Downloads/syn]$ npm start

> @syn/[email protected] start
> cross-env HC_PORT=$(port) concurrently -k "npm run dev:libs" "npm run start:happ" "npm run dev -w syntext"

[1] 
[1] > @syn/[email protected] start:happ
[1] > npm run build:happ && hc s generate -r=$HC_PORT dna/workdir/happ/syn.happ -a syn network --bootstrap https://bootstrap-staging.holo.host/ quic
[1] 
[0] 
[0] > @syn/[email protected] dev:libs
[0] > concurrently -k "npm run build:watch -w @syn/zome-client" "npm run build:watch -w @syn/store" "npm run build:watch -w @syn/elements"
[0] 
[2] 
[2] > [email protected] dev
[2] > rollup -c -w
[2] 
[2] sh: rollup: command not found
[2] npm ERR! Lifecycle script `dev` failed with error: 
npm ERR! Error: command failed 
[2] npm ERR!   in workspace: [email protected] 
[2] npm ERR!   at location: /home/feldi/Downloads/syn/ui/apps/syntext 
[2] npm run dev -w syntext exited with code 1
--> Sending SIGTERM to other processes..
[0] npm run dev:libs exited with code SIGTERM
--> Sending SIGTERM to other processes..
[1] npm run start:happ exited with code SIGTERM

@feldim2425
Copy link
Author

feldim2425 commented Sep 16, 2021

Ok my bad. I mixed up npm start and npm run start

However it still just opens as a white-screen in the browser with the Javascript error:

Uncaught ReferenceError: elements is not defined
    <anonymous> http://localhost:5000/build/bundle.js:14413
bundle.js:14413:1
    <anonymous> http://localhost:5000/build/bundle.js:14413

However this might be a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants