stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

Custom page layouts no longer loading locally

Open scottxtensive opened this issue 3 years ago • 3 comments

Expected behavior

If you add a customLayout page template to your theme, it should load the page locally. E.g:

"customLayouts": {
        "brand": {},
        "category": {},
        "page": {
            "custom.html": "/custom"
        },
        "product": {}
},

Actual behavior

Page just loads indefinitely. On the console it does state an upcoming get request, but nothing ever loads.

Steps to reproduce behavior

Add a custom page template to templates -> custom -> page -> custom.html and add the config to map it above.

I do see there is a new Pages V3 api which could be related.

If you try load a page that doesn't exist, the 404 page will load normally.

Environment

Stencil-cli version stencil --version: 6.14.17

Node version node -v: v14.19.3

NPM version npm -v: 6.14.17

OS: Mac 12.5.1 Ventura M1.

scottxtensive avatar Sep 13 '22 09:09 scottxtensive

Update: looks like it's either been a temporary issue or it's explicitly requiring a trailing slash - /custom/ - Not been an issue before so perhaps documentation could be updated if this is now required.

scottxtensive avatar Sep 13 '22 10:09 scottxtensive

We are having the same issue with webpages loading indefinitely, but for us it is happening on default pages.

stencil --version 5.2.0

Node version 14.19.3

NPM version 6.14.17

OS: Windows 10

dadameck avatar Sep 20 '22 12:09 dadameck

Update: looks like it's either been a temporary issue or it's explicitly requiring a trailing slash - /custom/ - Not been an issue before so perhaps documentation could be updated if this is now required.

https://github.com/bigcommerce/stencil-cli/pull/1000 fixed this for me

sacr3dc0w avatar Nov 04 '22 21:11 sacr3dc0w