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

Some modules are not properly imported when dockerized #2538

Open
pooledge opened this issue Apr 3, 2023 · 1 comment
Open

Some modules are not properly imported when dockerized #2538

pooledge opened this issue Apr 3, 2023 · 1 comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client docker An issue that occurs when running in Docker

Comments

@pooledge
Copy link

pooledge commented Apr 3, 2023

What version of Bun is running?

v0.5.8

What platform is your computer?

Darwin 21.6.0 arm64 arm

What steps can reproduce the bug?

  1. Install latest SvelteKit via npm create svelte@latest test
  2. Install and bind svelte-adapter-bun
  3. Ensure bun build && bun ./build/index.js works just fine
  4. Dockerize, ignoring node_modules:
FROM oven/bun
WORKDIR /opt/app/test
COPY . .
RUN bun i
RUN bun run build
CMD [ "bun", "run", "preview" ]

Execute docker build .

What is the expected behavior?

Build executes normally, as if it's no docker.

What do you see instead?

Build fails with the following:

#10 0.647 ✘ [ERROR] Operation not permitted [plugin externalize-deps]
#10 0.647 
#10 0.647     vite.config.ts:1:243:
#10 0.647       1 │ ...est/vite.config.ts";import { sveltekit } from '@sveltejs/kit/vite';
#10 0.647         ╵                                                  ~~~~~~~~~~~~~~~~~~~~

Additional information

No response

@pooledge pooledge added the bug Something isn't working label Apr 3, 2023
@pooledge pooledge changed the title Some modules are not properly imported Some modules are not properly imported when dockerized Apr 3, 2023
@Electroid Electroid added the bun install Something that relates to the npm-compatible client label Apr 3, 2023
@kolchurinvv
Copy link

kolchurinvv commented May 30, 2023

I think i have a related issue on a M1 macOS Ventura 13.4 (22F66)
Screenshot 2023-05-30 at 16 54 53

@pooledge when you say install and bind the svelte-adapted-bun are you referring to svelte.config.js?

@Electroid Electroid added the docker An issue that occurs when running in Docker label Oct 25, 2023
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 docker An issue that occurs when running in Docker
Projects
None yet
Development

No branches or pull requests

3 participants