Unable to build package in a local environment #1675
aegroto
started this conversation in
local dev help
Replies: 2 comments 3 replies
-
Did you copy |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have been able to build by creating a
There is no need to set I will work on converting this to work in a GitHub action such that we can perform checks on the bundle directly during the CI pipeline. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be beneficial to be able to build the package in a local environment. For instance, PRs such as #1606 require to verify that the bundle size is not affected too much. However, running the start
npm run build
command fails in the current project structure. I am currently using this Dockerfile:The command
docker build -t sn-test --no-cache .
fails with a bunch of the following errors:I have uploaded the full logs and the update Dockerfiles in https://github.com/aegroto/stacker.news/tree/local-bundle-build.
I have been looking for a while on the web and it looks like these errors may be due to missing or wrongly formatted environment variables pointing to URLs. However I have manually checked and the .env files are copied in the resulting image, therefore the environment should be set up correctly. Is there any other step missing? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions