Respec: npm start doesn't build all components

Created on 19 Mar 2018  路  4Comments  路  Source: w3c/respec

TypeError: Cannot read property 'length' of undefined
    at extAttr (webidl.js:250)
    at idlType2Html (webidl.js:158)
    at Object.<anonymous> (webidl.js:80)
    at Object.main (templates.js:35)
    at main (handlebars.js:1145)
    at ret (handlebars.js:1148)
    at writeAttribute (webidl.js:656)
    at webidl.js:602
    at Array.map (<anonymous>)
    at writeInterfaceDefinition (webidl.js:599)

I'm using the examples/basic.html (local branch in sync with 6b9412b23080d0446fca3aea6d744b19e3cbe097) . I think it's related to updates in webidl: 1aa913521a7158204aa49f55863597335ac9160f (checking out a commit behind this one didn't give error)

Let me know if I'm the only one facing the issue.

Most helpful comment

Maybe try npm run build? Could be that handlebars didn鈥檛 build.

All 4 comments

Maybe try npm run build? Could be that handlebars didn鈥檛 build.

Oh! That fixes it!
So we do we need to build it each time there is some update like that?

Yeah, it鈥檚 rare to update the templates. But we should update package.json and tge dev guide so it doesn鈥檛 catch people out. It鈥檚 gotten me too in the past.

Closing this, as we do now build components when we run npm start

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcoscaceres picture marcoscaceres  路  5Comments

sidvishnoi picture sidvishnoi  路  4Comments

marcoscaceres picture marcoscaceres  路  6Comments

marcoscaceres picture marcoscaceres  路  7Comments

jnurthen picture jnurthen  路  6Comments