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
return pug`
case this.props.active
when 'a'
when 'b'
.myDiv
`
I get the error:
Cannot read property 'nodes' of undefined
at context.staticBlock.childContext (C:\.....\node_modules\babel-plugin-transform-react-pug\dist\visitors\Case.js:25:65)
But:
return pug`
case this.props.active
when 'a'
.myDiv
when 'b'
.myDiv
`
Works fine. So case fall-through is currently not parsed correctly with the plugin.
The text was updated successfully, but these errors were encountered:
Pug's case fall through doesn't seem to work with the plugin.
If I use:
I get the error:
But:
Works fine. So case fall-through is currently not parsed correctly with the plugin.
The text was updated successfully, but these errors were encountered: