Skip to content

NextJS: Rendering container does not start #141

@sshushliapin

Description

@sshushliapin

Hi guys,

In the NextJS example, I followed the setup instrinctions running .\init.ps1 and .\up.ps1. CM works fine but the Rendering container does not start. Looks like npm packages need to be installed (container logs):

Attaching to basic-company-nextjs_rendering_1
rendering_1  |
rendering_1  | > basiccompany@16.0.0 start C:\app
rendering_1  | > npm-run-all --serial bootstrap --parallel next:dev start:watch-components
rendering_1  |
rendering_1  | 'npm-run-all' is not recognized as an internal or external command,
rendering_1  | operable program or batch file.
rendering_1  | npm ERR! code ELIFECYCLE
rendering_1  | npm ERR! errno 1
rendering_1  | npm ERR! basiccompany@16.0.0 start: `npm-run-all --serial bootstrap --parallel next:dev start:watch-components`
rendering_1  | npm ERR! Exit status 1
rendering_1  | npm ERR!
rendering_1  | npm ERR! Failed at the basiccompany@16.0.0 start script.
rendering_1  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
rendering_1  | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
rendering_1  |
rendering_1  | npm ERR! A complete log of this run can be found in:
rendering_1  | npm ERR!     C:\Users\ContainerUser\AppData\Roaming\npm-cache\_logs\2022-02-14T14_15_32_737Z-debug.log
basic-company-nextjs_rendering_1 exited with code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions