Unable to run blitz dev after upgrading to v0.12
blitz devdebug: local
debug: pkgPath: /Users/--proj--/node_modules/@blitzjs/cli
macOS Catalina | darwin-x64 | Node: v12.13.0
blitz: 0.8.0 (global)
blitz: 0.12.0 (local)
I've tried removing .next and .blitz
β yarn dev
yarn run v1.21.1
$ blitz start
You are using alpha software - if you have any problems, please open an issue here:
https://github.com/blitz-js/blitz/issues/new/choose
β Prepped for launch
ready - started server on http://localhost:3000
warn - You have enabled experimental feature(s).
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
Error: > Couldn't find a `pages` directory. Please create one under the project root
at findPagesDir (/Users/--proj--/node_modules/next/dist/lib/find-pages-dir.js:3:170)
at new DevServer (/Users/--proj--/node_modules/next/dist/server/next-dev-server.js:1:4325)
at createServer (/Users/--proj--/node_modules/next/dist/server/next.js:2:300)
at start (/Users/--proj--t/node_modules/next/dist/server/lib/start-server.js:1:323)
at nextDev (/Users/--proj--/node_modules/next/dist/cli/next-dev.js:21:279)
at /Users/--proj--/node_modules/next/dist/bin/next:28:341
'next dev' failed with status code: 1
@andreasasprou can you try with 0.13.0-canary.3?
It stalls at _manifest.json with 0.13.0-canary.3:
yarn run v1.21.1
$ blitz start
You are using alpha software - if you have any problems, please open an issue here:
https://github.com/blitz-js/blitz/issues/new/choose
β£ _manifest.json
Hmm... interesting there should be a fix for this in 0.13.0-canary.3
@andreasasprou Can you push a repo with this problem?
I can't seem to re-create it in a new repo & can't push mine. Is it possible to make the logging a little more verbose so I/we can debug it?
This will likely happen before 0.13.0-canary.3 can you guarantee you are not using an older version?
success Saved 8 new dependencies.
info Direct dependencies
ββ [email protected]
info All dependencies
ββ @blitzjs/[email protected]
ββ @blitzjs/[email protected]
ββ @blitzjs/[email protected]
ββ @blitzjs/[email protected]
ββ @blitzjs/[email protected]
ββ @blitzjs/[email protected]
ββ [email protected]
ββ [email protected]
All of the above match when I check in the relevant package.json's in node_modules
Ah, wait a second. Look at the version I posed in the initial issue... Mis-match in cli version
Try using yarn blitz start does that help at all?
Turns out, I ran blitz --version --verbose above after switching back to 0.12. I am now running blitz: 0.13.0-canary.3 (local) with yarn blitz start stalling at _manifest.json
so sorry but what is the output of yarn blitz --version --verbose
You are using alpha software - if you have any problems, please open an issue here:
https://github.com/blitz-js/blitz/issues/new/choose
debug: local
debug: pkgPath: /Users/--proj--/node_modules/@blitzjs/cli
macOS Catalina | darwin-x64 | Node: v12.13.0
blitz: 0.13.0-canary.3 (global)
blitz: 0.13.0-canary.3 (local)
Ok I will add an issue to increase logger verbocity but in the meantime I need a way to reproduce this somehow by posting a repo somewhere. You can get some extra logging currently using DEBUG=1 env var but I am not sure there is enough logging happening to provide much insight. Are any files missing from .blitz/caches/dev?
At a guess this might be an issue with vinyl-fs stream not ending for some reason which means that the ready event isnβt fired.
Everything seems to be in caches/dev (inc _manifest.json). DEBUG=1 provides no other information.
@andreasasprou I have reached out over blitz slack to try and connect to work out how to reproduce this.
If anyone comes across this issue and can share a repository with me to replicate this I would really appreciate it. This is certainly happening but I am finding it impossible to replicate on my system.
Today I wanted to update to v0.14.0 since v0.13.0 was not working for me due to this bug. Unfortunately v0.14.0 also doesn't work. It keeps stuck at _manifest.json.
I checked what was inside _manifest.json and compared it to the _manifest.json from the v0.12.0 version which builds and start blitz without any problem. The keys and values inside the _manifest.json file of the latest versions (v0.13.0/v0.14.0) contained a lot of .git paths.
Could this information help with figuring out a possible fix?
Thank you @gielcobben. So I guess that means the dangling promise was not the fix. I had a look and noticed we were not debouncing writing to the manifest. I thought the code was doing this but it must have been on a lost branch somewhere. If the problem is a highwatermark one this won't solve the underlying problem but it might keep the threshold low enough to avoid the issue and speed up the build which could make a difference. I will throw up a PR today.
Today I wanted to update to
v0.14.0sincev0.13.0was not working for me due to this bug. Unfortunatelyv0.14.0also doesn't work. It keeps stuck at_manifest.json.I checked what was inside
_manifest.jsonand compared it to the_manifest.jsonfrom thev0.12.0version which builds and start blitz without any problem. The keys and values inside the_manifest.jsonfile of the latest versions (v0.13.0/v0.14.0) contained a lot of.gitpaths.Could this information help with figuring out a possible fix?
Just re-read this. It should certainly not include any .git paths!
I just published 0.14.1. Can someone test that and see if you still have the stuck at _manifest issue?
Can confirm .git paths are not being ignored despite being set in the ignoredFolder list. Will investigate.
This may contribute to closing this: https://github.com/blitz-js/blitz/pull/687
0.14.2-canary.0 is now published which includes the fix for .git
@andreasasprou can you please let us know if this helps you at all?
@gielcobben said it fixes the issue for him!
Same as what I showcase in
It stalls at some random file. Every time I run blitz start it stalls at a different point.
I just published 0.15.1-canary.0 with the possible fix from #697
Boom baby! Seems to fix my issue. @ryardley it seems you hypothesis around large number of files was the issue!
0.15.1 now published with this fix
Most helpful comment
Boom baby! Seems to fix my issue. @ryardley it seems you hypothesis around large number of files was the issue!