Skip to content

Webpack-dev-server issue #48

@solo-daemon

Description

@solo-daemon

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Want to take up?
Are you interested in and capable of tackling this issue? [yes|no]

The following issue arises on building react image for omnniport

Add npm dependencies for developer tools? (y/N): y
[+] Building 16.0s (10/13)                                                                                                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                  0.0s
 => => transferring dockerfile: 889B                                                                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/node:lts-stretch-slim                                                                                                              3.5s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                           0.0s
 => [1/9] FROM docker.io/library/node:lts-stretch-slim@sha256:afef4a8000f747fdb0b22479fb4c7a2a19cd6f05b0e08c9f67e430853152c7fc                                                        0.0s
 => [internal] load build context                                                                                                                                                     0.0s
 => => transferring context: 355.69kB                                                                                                                                                 0.0s
 => CACHED [2/9] RUN groupadd --system react && useradd --system --gid react react                                                                                                    0.0s
 => CACHED [3/9] COPY ./package.json ./package.json                                                                                                                                   0.0s
 => CACHED [4/9] COPY ./yarn.lock ./yarn.lock                                                                                                                                         0.0s
 => ERROR [5/9] RUN yarn global add webpack-dev-server                                                                                                                               12.5s
------
 > [5/9] RUN yarn global add webpack-dev-server:
0.236 yarn global v1.22.19
0.260 [1/4] Resolving packages...
7.360 [2/4] Fetching packages...
12.44 error p-retry@6.2.0: The engine "node" is incompatible with this module. Expected version ">=16.17". Got "16.15.1"
12.45 error Found incompatible module.
12.45 info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
------
Dockerfile:22
--------------------
  20 |
  21 |     # Add webpack dependency
  22 | >>> RUN yarn global add webpack-dev-server
  23 |
  24 |     # Install dependenices from the file yarn.lock
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn global add webpack-dev-server" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions