I’ve encountered a similar error after installing both the head-tags and frontity-contact-form-7 packages. I first encountered the error in a theme I was working on for one of my wife’s sites and followed the steps at https://docs.frontity.org/guides/keep-frontity-updated#troubleshooting with no joy.
I’ve also created a new project with the Mars theme and have encountered similar issues after doing nothing more than installing the same two packages.
I’m in the project root when installing each and the install appears to be successful.
The frontity.settings.js file is as follows.
const settings = {
“name”: “makebreaks”,
“state”: {
“frontity”: {
“url”: “http://localhost:3000/”,
“title”: “Make Breaks”,
“description”: “Discover new things to do”
}
},
“packages”: [
{
“name”: “makebreaks-theme”
},
{
“name”: “@frontity/wp-source”,
“state”: {
“source”: {
“api”: “https://makebreaks.com/wp-json”
}
}
},
“@frontity/tiny-router”,
“@frontity/html2react”,
// “@frontity/head-tags”,
// “frontity-contact-form-7”
]
};
If I uncomment either of the packages and reload the site, the front end displays Internal Server Error.
CLI displays this when head-tags enabled.
TypeError: Cannot convert undefined or null to object
at Function.keys ()
at getKeys (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1009)
at mergeObject (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1282)
at deepmerge (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:2056)
at state.frontity.packages.forEach.name (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:484)
at Array.forEach ()
at webpack_exports.default (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:226)
at webpack_exports.default (webpack-internal:///./node_modules/@frontity/core/src/server/store.ts:5:271)
at app.use (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:47:68)
at process._tickCallback (internal/process/next_tick.js:68:7)
The following displays if frontity-contact-form-7 enabled.
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at getKeys (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1009)
at mergeObject (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:1282)
at deepmerge (webpack-internal:///./node_modules/deepmerge/dist/umd.js:2:2056)
at eval (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:484)
at Array.forEach (<anonymous>)
at __webpack_exports__.default (webpack-internal:///./node_modules/@frontity/core/src/utils/merge-packages.ts:8:226)
at __webpack_exports__.default (webpack-internal:///./node_modules/@frontity/core/src/server/store.ts:5:271)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:47:68)
at runMicrotasks (<anonymous>)
I’m on Windows 10 (perhaps this makes me a freak). Node version is 12.18.3.
Am I doing something silly? I’ve reread the external packages process several times, but I’m perfectly capable of doing something daft.
Otherwise, any thoughts on what’s at play here and any possible solutions?
Thanks