Skip to content

RuntimeError: NG04002 #91

@GeoCommander

Description

@GeoCommander

Issue:
after running the storefront some time (30-60 minutes) the following errors show up

at Recognizer.noMatchError (/root/storefront-angular-starter/dist/server/main.js:183:2325692)
at CatchSubscriber.selector (/root/storefront-angular-starter/dist/server/main.js:183:2326067)
at CatchSubscriber.error (/root/storefront-angular-starter/dist/server/main.js:183:2249451)
at MergeMapSubscriber._error (/root/storefront-angular-starter/dist/server/main.js:183:786447)
at MergeMapSubscriber.error (/root/storefront-angular-starter/dist/server/main.js:183:786232)
at ThrowIfEmptySubscriber._error (/root/storefront-angular-starter/dist/server/main.js:183:786447)
at ThrowIfEmptySubscriber.error (/root/storefront-angular-starter/dist/server/main.js:183:786232)
at TakeLastSubscriber._error (/root/storefront-angular-starter/dist/server/main.js:183:786447)
at TakeLastSubscriber.error (/root/storefront-angular-starter/dist/server/main.js:183:786232)
at DefaultIfEmptySubscriber._error (/root/storefront-angular-starter/dist/server/main.js:183:786447) {

code: 4002
}

Node.js v20.13.1

Solution:
I am not an expert but removing " pathMatch: 'full'," from "/scr/app/app.routes.ts" solved the problem for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions