The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
TypeError: Cannot read property 'split' of undefined at __webpack_exports__.default (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/handlers/utils/capitalize.ts:2:73)
at Object.eval (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/handlers/postType.ts:10:205)
When I remove the homepage setting, I run into no errors.
This is probably related to #366 but the /homepage shouldn’t be 404ing?
Any help greatly appreciated!
Thanks!
1 Like
mburridge2
Hi @ben.wright.dev
Welcome to the forums.
I have confirmed that the error occurs with "/homepage" as the homepage value. When I replace it with "/" the error goes away but I’m not getting anything on the page. This appears to be because your homepage has no content:
Let me know if this solves the problem for you. Failing that we can investigate further, but please provide a link to a repository that we can check. Thanks.
ben.wright.dev4
Hey @mburridge,
Thanks for the reply!
I’ve actually got it working now with ‘/homepage/’. I stripped down my theme and refactored code and the bug has gone! Looks like my error, apologies.
2 Likes
mburridge6
Hi @ben.wright.dev
Great to hear that you’ve got it sorted ! We’re here to help if anything else crops up. We look forward to seeing what you’re building with Frontity. Let us know.
mmczaplinski7
Hey @ben.wright.dev I’m not sure if this bug was affecting you in your case, but we merged a fix which should return a 404 instead of 500 with more specific information: