-
Notifications
You must be signed in to change notification settings - Fork 149
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 build with yarn #227
Comments
I fixed everything by changing
to
then when yarn build worked i linked client/dist folder to client/build using command below |
Thanks for reporting @KartoniarzEssa It should be fixed now. Let me know if you experience new trouble. |
@jrmi Now building the Dockerfile have problem because you change the container to alpine that have apk as package manager not apt. To fix it you must change to debian-based distro.
You should expose the port from docker container too: |
@jrmi Also, there are 2 more errors that i don't know how to resolve, first is only some warnings while building docker container, but idk if they're important I configured everything in .env files, i tried with redis and with memory storage. Neither works for me |
Thanks again for reporting. The error you're seeing during the build are more a warning because of some obsolete dependencies (I'm trying to replace them) and because of the final size of the build. These two are not blocking I guess. The error you're experiencing in your browser is probably caused by the fact you're accessing Darkwire through a http connection. Check out this issue #195 you'll see the same error. If you want to solve that you should use a httpS connection. I should make the error more clear or may be use something like https://www.npmjs.com/package/webcrypto-shim in this case. |
@jrmi Ok now I have a certificate and a https, I'm even listed in a room and I can text but after refresh everything disappears, and it says that it's disconnected idk from what. Redis? API? |
This message is displayed when you are disconnected from the websocket. Redis is not used anymore. If you've used a reverse proxy to add the certificate and the https you probably also need some configuration to make the websockets work. What have you used as reverse proxy? |
@jrmi I used nginx and this is config |
Take a look at this link https://www.nginx.com/blog/websocket-nginx/
May be more. |
Or this link https://nginx.org/en/docs/http/websocket.html |
I've published a new version with a improved version of docker file and docker compose and I've applied your suggestion to the readme. Let me know what you think. |
nvm is not a typo it's a tool to manage node version. Was it the typo? |
Oh i thought its meant to be npm |
Yeah something like that. Or content security policy are wrong. Sometimes it also shows that when there is no websocket server at all. Are you trying a localhost version? |
It should be in the client .env file. But you might have to recreate your docker image (if you are using docker). |
You might have to recreate you docker image from scratch also. (docker build...) |
Now Im not even using docker |
for now |
My domain should be in VITE_API_HOST? |
Yes. |
I just starting it by using yarn start in darkwire.io folder |
Ok so you might have to execute |
every change i run ./build.sh |
Remove the |
After rebuild same error in console |
Can you try to rebuild the client from it's own directory?
|
What do you see if you visit |
But its without port in the console its with port |
And maybe this is problem |
But if you're behind a nginx reverse proxy, you might need no port (or port 443). |
What is the url you use in the browser? |
its without port, but in console the error is with port |
So remove the port! |
(use 443) |
Thanks for support and help |
Congrats :) and good night. I have published a version that fixes the build problem not using |
I also translate the panel to polish if you want
|
Great! Would you mind to review this MR #231 |
chuj@chuj:~/darkwire.io$ yarn build
yarn run v1.22.19
$ ./build.sh
building client...
[1/4] Resolving packages...
success Already up-to-date.
$ tsc && vite build
src/main.tsx:12:28 - error TS2307: Cannot find module '@/store/' or its corresponding type declarations.
12 import configureStore from '@/store/';
~~~~~~~~~~
src/main.tsx:13:18 - error TS2307: Cannot find module '@/components/Home/' or its corresponding type declarations.
13 import Home from '@/components/Home/';
~~~~~~~~~~~~~~~~~~~~
src/main.tsx:14:33 - error TS2307: Cannot find module '@/utils/dom' or its corresponding type declarations.
14 import { hasTouchSupport } from '@/utils/dom';
~~~~~~~~~~~~~
Found 3 errors in the same file, starting at: src/main.tsx:12
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
building server...
[1/4] Resolving packages...
success Already up-to-date.
$ echo 'Nothing to build here.'
Nothing to build here.
Done in 4.83s.
The text was updated successfully, but these errors were encountered: