preact-cli icon indicating copy to clipboard operation
preact-cli copied to clipboard

Console error after creating project from default template.

Open raulchedrese opened this issue 8 years ago • 5 comments

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.

  1. Create a new project preact create default my-project
  2. Run npm start in the project directory.
  3. Access http://localhost:8080 in 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

raulchedrese avatar Feb 10 '18 21:02 raulchedrese

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!

lukeed avatar Feb 10 '18 21:02 lukeed

It is fixed in v2.1.3 (latest patch release)

reznord avatar Feb 14 '18 12:02 reznord

Have updated and still same issue with 2.1.3.

DiegoGLagash avatar Feb 14 '18 12:02 DiegoGLagash

@DiegoGLagash I would clear cache and install everything again. Make sure you're updating global install if you have it too.

lukeed avatar Feb 14 '18 13:02 lukeed

Confimed. It works after upgrading global installation. Thanks !

DiegoGLagash avatar Feb 14 '18 18:02 DiegoGLagash