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

error: No version matching "8.19.1" found for specifier "@typescript-eslint/visitor-keys" (but package exists) #16247

Open
afc163 opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client

Comments

@afc163
Copy link

afc163 commented Jan 8, 2025

What version of Bun is running?

v1.1.42

What platform is your computer?

MacOS

What steps can reproduce the bug?

https://github.com/ant-design/ant-design/actions/runs/12672847883/job/35317819647?pr=51844

Run bun install
bun install v1.1.42 (50eec002)
Resolving dependencies
Resolved, downloaded and extracted [12164]
warn: incorrect peer dependency "[email protected]"

warn: incorrect peer dependency "[email protected]"

error: No version matching "8.19.1" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "8.19.1" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "8.19.1" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "5.62.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "8.19.1" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "5.62.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "4.33.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)

error: No version matching "4.33.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
Error: Process completed with exit code 1.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@afc163 afc163 added bug Something isn't working needs triage labels Jan 8, 2025
@sedghi
Copy link

sedghi commented Jan 8, 2025

It's interesting to find your issue because I'm experiencing the same problem right now

61.41 error: No version matching "5.5.4" found for specifier "typescript" (but package exists)
61.41 
61.41 error: No version matching "5.5.4" found for specifier "typescript" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/typescript-estree" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/typescript-estree" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/typescript-estree" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)
61.41 
61.41 error: No version matching "6.21.0" found for specifier "@typescript-eslint/visitor-keys" (but package exists)
61.42 error: typescript@5.5.4 failed to resolve
61.42 error: typescript@>=3 < 6 failed to resolve
61.42 error: @typescript-eslint/visitor-keys@6.21.0 failed to resolve
61.42 error: @typescript-eslint/typescript-estree@6.21.0 failed to resolve
61.42 error: @typescript-eslint/visitor-keys@6.21.0 failed to resolve
61.42 error: @typescript-eslint/visitor-keys@6.21.0 failed to resolve
61.42 error: @typescript-eslint/typescript-estree@6.21.0 failed to resolve
61.42 error: @typescript-eslint/typescript-estree@6.21.0 failed to resolve

Here is my dockerfile



# Stage 1: Build the application
# docker build -t ohif/viewer:latest .
# Copy Files
FROM node:20.18.1-slim as builder

RUN apt-get update \
  && apt-get upgrade -y \
  && apt-get install -y build-essential python3 \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*


RUN mkdir /usr/src/app
WORKDIR /usr/src/app
RUN npm install -g bun
# RUN npm install -g [email protected]
ENV PATH=/usr/src/app/node_modules/.bin:$PATH

# Do an initial install and then a final install
COPY package.json yarn.lock preinstall.js lerna.json ./
COPY --parents ./addOns/package.json ./addOns/*/*/package.json ./extensions/*/package.json ./modes/*/package.json ./platform/*/package.json ./
# Run the install before copying the rest of the files
RUN bun install
# Copy the local directory
COPY --link --exclude=yarn.lock --exclude=package.json --exclude=Dockerfile . .
# Do a second install to finalize things after the copy
RUN bun run show:config
RUN bun install

# Build here
# After install it should hopefully be stable until the local directory changes
ENV QUICK_BUILD true
# ENV GENERATE_SOURCEMAP=false
ARG APP_CONFIG=config/default.js
ARG PUBLIC_URL=/

RUN bun run show:config
RUN bun run build

# Precompress files
RUN chmod u+x .docker/compressDist.sh
RUN ./.docker/compressDist.sh

# Stage 3: Bundle the built application into a Docker container
# which runs Nginx using Alpine Linux
FROM nginxinc/nginx-unprivileged:1.27-alpine as final
#RUN apk add --no-cache bash
ARG PORT=80
ENV PORT=${PORT}
ARG PUBLIC_URL=/
ENV PUBLIC_URL=${PUBLIC_URL}
RUN rm /etc/nginx/conf.d/default.conf
USER nginx
COPY --chown=nginx:nginx .docker/Viewer-v3.x /usr/src
RUN chmod 777 /usr/src/entrypoint.sh
COPY --from=builder /usr/src/app/platform/app/dist /usr/share/nginx/html${PUBLIC_URL}
COPY --from=builder /usr/src/app/platform/app/dist/index.html /usr/share/nginx/html
# In entrypoint.sh, app-config.js might be overwritten, so chmod it to be writeable.
# The nginx user cannot chmod it, so change to root.
USER root
RUN chown -R nginx:nginx /usr/share/nginx/html
USER nginx
ENTRYPOINT ["/usr/src/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]

similar issue reported here as well #13371

Funny enough it only happens on the docker build on arm64

@RiskyMH RiskyMH added bun install Something that relates to the npm-compatible client and removed needs triage labels Jan 9, 2025
@sedghi
Copy link

sedghi commented Jan 22, 2025

It works fine now, i don't know what happened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

3 participants