Console error after creating project from default template.
Do you want to request a feature or report a bug? Bug
What is the current behaviour? A freshly created project has console errors.
If the current behaviour is a bug, please provide the steps to reproduce.
- Create a new project
preact create default my-project - Run
npm startin the project directory. - Access
http://localhost:8080in a web browser.
The following error appears in the browser dev tools console:
Undefined component passed to preact.h()
<undefined path="/" url="/" matches="[object Object]" />
What is the expected behaviour? No console errors
Please mention other relevant information.
- Node version 9.5.0
- npm version 5.6.0
- Operating system macOS 10.13
- CLI version 2.1.1
- Browser Chrome and Safari
This was addressed in #484 & I believe it solves this error too. The patch hasn't gone out yet, but if you could verify for us that this fixes your error, that'd be great! Thanks!
It is fixed in v2.1.3 (latest patch release)
Have updated and still same issue with 2.1.3.
@DiegoGLagash I would clear cache and install everything again. Make sure you're updating global install if you have it too.
Confimed. It works after upgrading global installation. Thanks !