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

question(web): run start failed #943

Closed
sarthak55k opened this issue Sep 9, 2021 · 11 comments · Fixed by #944
Closed

question(web): run start failed #943

sarthak55k opened this issue Sep 9, 2021 · 11 comments · Fixed by #944
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@sarthak55k
Copy link

I was working on the flat-web module but eventually got some error
error

Can anyone suggest how to resolve the error

@BlackHole1
Copy link
Collaborator

Can you tell us your system information?

and whether you executed yarn run bootstrap in the project root directory, this command will assist you to get your current environment ready.
And whether you got any error while executing yarn run bootstrap?

@BlackHole1 BlackHole1 added question Further information is requested waiting reproduce Need to reproduce to confirm the presence of labels Sep 9, 2021
@BlackHole1 BlackHole1 self-assigned this Sep 9, 2021
@BlackHole1 BlackHole1 changed the title init-ui not working question(web): run start failed Sep 9, 2021
@sarthak55k
Copy link
Author

yarn run bootstrap is for both desktop application and web application.
I just want to use web application so when i was running it seperately by using the command:
tsc src/index.ts
i was getting the above error.
i tried it on both windows and linux(ubuntu) and both were giving the same error.

if i am getting something wrong, can u tell me the correct way to just use the web module.

@BlackHole1
Copy link
Collaborator

I probably know what the problem is, because when using yarn run bootstrap, we will install agora-electron-sdk, which currently has no linux version. Also we didn't consider the situation under linux development before

Also, you shouldn't use the tsc tool to compile directly. flat-web currently uses the vite build tool. You should use yarn run start in the flat-web directory for development

I will get yarn run bootstrap to support linux in the following hours (just to make sure can get the process done properly, but still can't develop desktop under linux)

@BlackHole1 BlackHole1 added bug Something isn't working and removed waiting reproduce Need to reproduce to confirm the presence of labels Sep 10, 2021
@hyrious
Copy link
Member

hyrious commented Sep 10, 2021

  1. Make sure you have yarn install (will fail on linux, @BlackHole1 will fix it)
  2. yarn workspace flat-web start

@BlackHole1 BlackHole1 linked a pull request Sep 10, 2021 that will close this issue
@BlackHole1
Copy link
Collaborator

@sarthak55k

you can now run yarn run bootstrap, then run yarn workspace flat-web start or cd web/flat-web && yarn run start

@BlackHole1
Copy link
Collaborator

thank you for your feedback.

If there is still a problem, you can comment and we will reopen the issue

@sarthak55k
Copy link
Author

Still there is a issue
i guess the issue is in react-virtualized package.
similar issue is raised at their github repo and they are working on it
react-virtualized_err

i tried to comment the import in the node module and it worked
but thats not the correct way ig

@BlackHole1
Copy link
Collaborator

@hyrious

@BlackHole1 BlackHole1 reopened this Sep 10, 2021
@hyrious
Copy link
Member

hyrious commented Sep 10, 2021

@sarthak55k You're right. Currently we just bypass this wrong file with a postinstall script to modify the file like you have done. If for some reason the postinstall script did not run on your machine, you can try to execute yarn workspace flat-web postinstall manually.

In other words, what you have done is the correct way.

@sarthak55k
Copy link
Author

yeah its working
One more thing want to ask
How to separate the web from the desktop project
I want to just use the web part
it will be great help

@BlackHole1
Copy link
Collaborator

At the moment their code is basically separate, you can use/develop the web without having to care about the existence of the desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants