"TypeError: Cannot assign to read only property 'name' of function" in cf7


After the latest Frontity release, I get this error when I try to run in localhost:

TypeError: Cannot assign to read only property 'name' of function 'props=>{// Dummy setState to update the component.
    at eval (webpack-internal:///./node_modules/@frontity/connect/src/connect.js:91:71)
    at Array.forEach (<anonymous>)
    at connect (webpack-internal:///./node_modules/@frontity/connect/src/connect.js:91:40)
    at eval (webpack-internal:///./node_modules/@aamodtgroup/frontity-contact-form-7/src/processors/cf7HiddenInputs.js:5:568)
    at Module../node_modules/@aamodtgroup/frontity-contact-form-7/src/processors/cf7HiddenInputs.js (/Users/kasperaamodt/GitHub/aamodtgroup/build/server.js:283:1)
    at __webpack_require__ (/Users/kasperaamodt/GitHub/aamodtgroup/build/server.js:27:30)
    at eval (webpack-internal:///./node_modules/@aamodtgroup/frontity-contact-form-7/src/index.js:9:85)
    at Module../node_modules/@aamodtgroup/frontity-contact-form-7/src/index.js (/Users/kasperaamodt/GitHub/aamodtgroup/build/server.js:259:1)
    at __webpack_require__ (/Users/kasperaamodt/GitHub/aamodtgroup/build/server.js:27:30)
    at eval (webpack-internal:///./build/bundling/entry-points/server.ts:9:104)

This is from the processors to the cf7 package, and I have no idea how to fix it.
Does anyone here know what the error could be? The error stems from the processors of HiddenInput.js and Span.js

If anyone have a solution, you can submit a PR here:


Hello Kasper,

I’ve had a similar issue with my packages.

Try updating the version of frontity in this file: frontity-contact-form-7/package.json at main · aamodtgroup/frontity-contact-form-7 · GitHub

Hi @maurice.tadros

I just tried it, but unfortunately I still get the same error message. Thanks for the suggestion!

I noticed that the Span and HiddenInput processors used export default connect(), while the other processors only used export default. So I removed the connect, and it started to work again.

Hi again.

It fixed the TypeError, but now the input fields do not work…