preactjs / preact-cli

😺 Your next Preact PWA starts in 30 seconds.
MIT License
4.69k stars 375 forks source link

Error when using material template #513

Closed tschnoelzer closed 6 years ago

tschnoelzer commented 6 years ago

Do you want to request a feature or report a bug? bug

What is the current behaviour? when creating a new material template project with preact-cli, the web app produces error when running on http server.

If the current behaviour is a bug, please provide the steps to reproduce.

error: Uncaught Error: mdc-drawer--temporary class required in root element. at e.init (foundation.js:72) at e.init (foundation.js:54) at e.t (component.js:49) at new e (index.js:24) at Function.e.attachTo (index.js:26) at e.componentDidMount (index.js:34) at _ (preact.min.js:1) at m (preact.min.js:1) at R (preact.min.js:1) at a (entry.js:20)

What is the expected behaviour? no error like when running in npm run dev or npm run start

If this is a feature request, what is motivation or use case for changing the behaviour?

Please mention other relevant information.

prateekbh commented 6 years ago

@tschnoelzer so sorry you are facing this with preact-material-components 1.3.6. please install version 1.3.5 of preact-material-components, we will release 1.3.7 in a day or two which should fix this