Skip to content

18.16.1 Directory Access Issue in Docker Alpine with Nest ViewEngine #48743

@MarcusTheSmith

Description

@MarcusTheSmith

Version

18.16.1

Platform

Alpine Linux Docker Image

Subsystem

No response

What steps will reproduce the bug?

Update Docker Image from 18.16.0-Alpine to 18.16.1-Alpine
Using the ViewEngine referencing template docs, Nest.JS will return a 500 when trying to load saying:

Failed to lookup view "welcome" in views directory "/app/dist/view-engine/views"
    at Function.render (/app/node_modules/express/lib/application.js:597:17)
    at ServerResponse.render (/app/node_modules/express/lib/response.js:1039:7)
    at ExpressAdapter.render (/app/node_modules/@nestjs/platform-express/adapters/express-adapter.js:60:25)
    at RouterResponseController.render (/app/node_modules/@nestjs/core/router/router-response-controller.js:29:36)
    at async /app/node_modules/@nestjs/core/router/router-execution-context.js:158:24
    at async /app/node_modules/@nestjs/core/router/router-execution-context.js:47:13
    at async /app/node_modules/@nestjs/core/router/router-proxy.js:9:17

How often does it reproduce? Is there a required condition?

So long as the Alpine image is running 18.16.1

What is the expected behavior? Why is that the expected behavior?

Node 18.16.1 should act just like Node 18.16.0

What do you see instead?

The directory lookup failing for 18.16.1 and succeeding for previous versions.

Additional information

This may be an Express/Nest issue, however because it started failing on a minor version update of Node (which should not require dependency updating) I would consider it a bug with Node. I'm happy to report to Nest.JS if initial investigation proves the issue to not be with Node.

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