preactjs-templates / material

The material design `preact-cli` template
MIT License
44 stars 20 forks source link

Module not found: Error: Can't resolve 'preact-material-components/Toolbar/style.css' #18

Closed JNaftali closed 5 years ago

JNaftali commented 5 years ago

After creating a project with preact create material project-name, running npm run start causes the above error. The problem comes from components/header/index.js on line 12, which tries to import 'preact-material-components/Toolbar/style.css' even though no such file exists in node_modules.

I assume this is an upstream error, but until it's addressed I'll probably just import the whole stylesheet at once instead of doing it per-component.

prateekbh commented 5 years ago

Oh yeah my bad, Toolbar is deprecated. Will update ASAP

prateekbh commented 5 years ago

fixed, can you re-create your project?

JNaftali commented 5 years ago

I'll give it a go - unless you hear otherwise assume it worked fine and thanks for your help!