-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean installation of preact-cli fails to build #252
Comments
Can you try re-installing the |
Sorry if that wasn't clear. I've deleted all of node_modules (several times), reinstalled, and also created a brand new project from a totally clean node install. Same results in both cases. Edit: now that I think about it, reinstalling node_modules to the local project probably isn't the problem nor solution. The globally installed preact-cli is where the issue lies, since |
I've seen this reported elsewhere too - I wonder what is installing |
@developit its a webpack-dev-server dependency that at some point got moved to devDependencies and published(?). Not sure how that affected old versions–making fallback versions not work–but the issue I linked to in the first comment has further details/dicussion. Its fixed with |
Sounds about right! |
I was working on upgrading to the latest version last night to debug a separate problem and decided to go ahead and update from 1.3.0 to 1.4.0, as well as a totally new install on a fresh install of node.
node -v: v6.9.5
npm -v: 5.1.0
preact -v: preact-cli 1.4.0 (upgraded from 1.3.0)
node -v: v8.2.1
npm -v: 5.3.0
preact -v: preact-cli 1.4.0 (new install)
I generated a new project using
create
. Build fails with error:Seems to be a bug in webpack-dev-server (webpack/webpack-dev-server#984). Supposedly, falling back to old versions would work but one user reported still seeing the error while using
2.4.2
(so slightly older than this project's dep2.4.5
). That would suggest that that bug is also affecting this project. If that issue is as pervasive as it seems, this may affect every new installation.Workaround
Fortunately the workaround is to simply install
loglevel
on your own project, until preact-cli upgrades.npm i -D loglevel
oryarn add -D loglevel
Solution
In the long term, preact-cli probably needs to upgrade to webpack-dev-server +
2.6.0
but I'll leave that to the team to further analyze and see if its compatible.The text was updated successfully, but these errors were encountered: