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.
After creating a project with
preact create material project-name
, runningnpm run start
causes the above error. The problem comes fromcomponents/header/index.js
on line 12, which tries to import'preact-material-components/Toolbar/style.css'
even though no such file exists innode_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.