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

Cannot install Jetstream on my macbook #1140

Open
MoMa1984 opened this issue Jan 20, 2025 · 3 comments · May be fixed by #1146
Open

Cannot install Jetstream on my macbook #1140

MoMa1984 opened this issue Jan 20, 2025 · 3 comments · May be fixed by #1146
Labels
bug Something isn't working

Comments

@MoMa1984
Copy link

I tried to install Jetstream on my macbook (macOS 15.2) using Docker but it failed several times.

First I cloned the Rep. and wrote
docker build -t jetstream-app .

After resetting nx as instructed in the error log, it did not work.

Image

@MoMa1984 MoMa1984 added the bug Something isn't working label Jan 20, 2025
@501clouds
Copy link

501clouds commented Jan 23, 2025

same issue on ubuntu with the dockerfile. I tried setting WORKDIR to / and then /apps to no avail.

After enabling --verbose on the build:core step I get this output:

Require stack:
5.428 - /app/libs/shared/ui-utils/eslint.config.js
5.428 at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
5.428 at Module._load (node:internal/modules/cjs/loader:985:27)
5.428 at Module.require (node:internal/modules/cjs/loader:1235:19)
5.428 at require (node:internal/modules/helpers:176:18)
5.428 at Object. (/app/libs/shared/ui-utils/eslint.config.js:2:20)
5.428 at Module._compile (node:internal/modules/cjs/loader:1376:14)
5.428 at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
5.428 at Module.load (node:internal/modules/cjs/loader:1207:32)
5.428 at Module._load (node:internal/modules/cjs/loader:1023:12)
5.428 at cjsLoader (node:internal/modules/esm/translators:345:17)
5.428 Error: Cannot find module '../../../eslint.config.js'

in about 30 different versions with only the path prior to /eslint.config.js changing. I've confirmed I have eslint.config.js in the path under apps and had tried using WORKDIR /apps since the eslint.config.js file appears in that path.

@paustint
Copy link
Contributor

Sorry for the issue, we don't use the Dockerfile internally so it sometimes gets out of date. We will take a look.

You can try checking out tag v4.18.0 and that will most likely work.

Otherwise you can run without using docker and that should work as well.

yarn install
yarn scripts:generate-env
yarn db:migrate
yarn db:seed
yarn build:core
node dist/apps/api/main.js (or in two terminals to run in dev mode: - yarn start and yarn statr:api)

paustint added a commit that referenced this issue Jan 23, 2025
eslint file names were changes with the migration to the flat config but this was not updated in docker-ignore to include that file

resolves #1140
@paustint paustint linked a pull request Jan 23, 2025 that will close this issue
@paustint
Copy link
Contributor

@MoMa1984 @501clouds - you can try out this branch bug/fix-docker and see if that fixes it. It should resolve your immediate issue, but as mentioned in the prior post that it has been a while since docker was tested and there were some big changes in swapping out our authentication code, so it is possible there may be some other issues.

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

Successfully merging a pull request may close this issue.

3 participants