Closed rossmc closed 5 years ago
Thanks @danrcoull, but when I applied the changes from your PR I still get the same errors when I browser to either
Can you browser to those URLs on your local?
does the cms page with that url key exist in magento ?
Yes, that URL exists out-of-the-box on all M2 instances. I also double checked it exists with GraphiQL.
{
urlResolver(url: "/privacy-policy-cookie-restriction-mode") {
type
id
}
}
Use this public endpoint used by PWA Studio: https://release-dev-231-npzdaky-zddsyhrdimyra.us-4.magentosite.cloud/graphql
The GraphQL response is:
{
"data": {
"urlResolver": {
"type": "CMS_PAGE",
"id": 4
}
}
}
This isn't a bug but a feature request for pulling in CMS content from Magento backend, currently a gap. closing this as a defect and will track through a feature request.
Describe the bug CMS Pages don't render when I try to navigate to a URL for a CMS Page on the Venia storefront.
To Reproduce Steps to reproduce the behavior:
ENOENT: no such file or directory, stat '/Users/ross/Projects/pwa-temp/packages/venia-concept/dist/privacy-policy-cookie-restriction-mode'
Update If you add
.html
to the end of the URL, you get a different error in the browser console:Expected behavior The CMS Page to load with it's content set in the Magento Admin Panel.
Screenshots https://user-images.githubusercontent.com/2452991/54025192-14213380-419a-11e9-907f-862a9eef0854.png
Please complete the following device information:
6.7.0
v11.10.1
Please let us know what packages this bug is in regards to:
venia-concept
pwa-buildpack
peregrine
pwa-devdocs
upward-js
upward-spec
Additional context
Possible solutions The GraphQL query works when I test it in a GraphiQl...