You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
I'm using hyperapp and picostyle
When I have more than one element from picostyle on a page without an ID or KEY I receive this error:
index.js:121 Uncaught TypeError: node.setAttribute is not a function
at patchProperty (index.js:121)
at createNode (index.js:135)
at createNode (index.js:140)
at createNode (index.js:140)
at patch (index.js:165)
at patch (index.js:317)
at patch (index.js:282)
at render (index.js:465)
This is how I defined the element:
const ps = picostyle(h);
const GridRow = ps("div")({
display: "grid",
gridTemplateColumns: "repeat(11, 40px)"
})
and in hyperapp:
const RootPage = state => (
{state.rows.map( it => ({it}))}
)
if I add an id or key to the GridRow i.e. it works with no error.