Closed TraderApophis closed 10 months ago
Hey, Current packaged webpack version doesn't with node > 17 as it doesn't satisfy the upgraded OpenSSL standard in NJS 17 and above.
There is a workaround using sys env variable.We are currently upgrading the stack to Víte and NodeJS 20 in the new dev
branch and this fixes this issue.
Note that it won't make it to master
before several users tested the new stack and that we tested that everything works as expected.
Will come back to you asap.
Cheers
I would appreciate if you could explain the work around using environment variable. I have tried building from the 'dev' branch and get other unrelated errors.
I am very sorry. It's a very unstable week for me and there's indeed a lots of things broken. It's 100% my fault. There is open PRs that need to be merged into dev
.
I have created a bit of a mess in the repo past days trying to do too much.
Please join Discord https://discord.gg/zbMUj52G and you'll see the update there.
Here's an SO reply (https://stackoverflow.com/a/74488988) that explains how to run webpack 4 on Node 17 and above.
Yeah I have tried that environment variable and still get issues with missing files when trying to do npm run build. I am not a node expert so I think I might have to wait until master is fixed.
Have you tried to install Volta and run the branch locally w/o Docker?Sent from Outlook for AndroidFrom: TraderApophis @.>Sent: Thursday, June 1, 2023 4:15:51 pmTo: Tucsky/aggr @.>Cc: Axel De Acetis @.>; Comment @.>Subject: Re: [Tucsky/aggr] Docker Build is broken (Issue #324) Yeah I have tried that environment variable and still get issues with missing files when trying to do npm run build. I am not a node expert so I think I might have to wait until master is fixed.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
I have tried to build locally on Ubuntu 22.04 LTS.
I get this error when doing npm run build
`$ npm run build
aggr@3.3.2 build /data/external-repos/aggr vue-cli-service build
sh: 1: vue-cli-service: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! aggr@3.3.2 build: vue-cli-service build
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the aggr@3.3.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
`
I think I have installed volta ok, not sure if vue-cli is install correctly though. I did install using:
npm install -g @vue/cli npm install create-vue@latest
I have tried removing node_modules and package-lock.json and doing npm install
again. I have also tried chmod a+x on node_modules and same issue. Even if I chmod 777 the whole repo I still get permission issue.
Entirely possible these problems are to do with my local environment and nothing to do with the repo. Hence why I wanted to use the docker image :)
What about?
chmod -R a+x node_modules
Yes, sorry I did apply the perms recursively. Still same issue.
Hello,
I have proposed a fix for the Docker setup here #330
You will need to install volta.sh.
Check out the PR branch, then type in the terminal:
docker build -t aggr-ui -f ./Dockerfile .
docker run -p 3001:80 aggr-ui
This should work right off the bat. There are some functionalities that will not work at this point in time: alerts and historical data.
In order to fix that, you would have to run aggr-server
. I will prepare some documentation to help you guys out with the configuration. Please test it out for me, I need some review. Thank you.
Fixes are about to go live with release 3.4.0 #360
Describe the issue
Building inside docker from a clone of the repo is broken. Error shown below.
...
Steps to reproduce