Any luck with it yet ?
I’ve been trying to troubleshoot the dev environment not working for a while now.
I haven’t tried with npx, however with npm it just exits silently
$ npm run dev
> anothertest@0.0.0 dev
> shopify hydrogen dev
> Local: http://localhost:3000/
> Network: use `--host` to expose
$
and with yarn I get
$ yarn dev
yarn run v1.22.18
warning ../../package.json: No license field
$ shopify hydrogen dev
> Local: http://localhost:3000/
> Network: use `--host` to expose
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Only once did I get the following message, not sure it’s related.
$ yarn dev
yarn run v1.22.18
warning ../../package.json: No license field
$ shopify hydrogen dev
> Local: http://localhost:3000/
> Network: use `--host` to expose
fatal error: all goroutines are asleep - deadlock!
goroutine 1 [semacquire]:
sync.runtime_Semacquire(0x9893c0?)
runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc00000e018?)
sync/waitgroup.go:136 +0x52
main.runService(0x1)
github.com/evanw/esbuild/cmd/esbuild/service.go:177 +0x43b
main.main()
github.com/evanw/esbuild/cmd/esbuild/main.go:208 +0x1f0
goroutine 6 [chan receive]:
main.runService.func1()
github.com/evanw/esbuild/cmd/esbuild/service.go:110 +0x5a
created by main.runService
github.com/evanw/esbuild/cmd/esbuild/service.go:108 +0x16b
goroutine 7 [chan receive]:
main.(*serviceType).sendRequest(0xc00007c2c0, {0x860380, 0xc00022f9b0})
github.com/evanw/esbuild/cmd/esbuild/service.go:203 +0xfa
main.runService.func2()
github.com/evanw/esbuild/cmd/esbuild/service.go:132 +0x39
created by main.runService
github.com/evanw/esbuild/cmd/esbuild/service.go:129 +0x26d
goroutine 65 [chan send]:
github.com/evanw/esbuild/internal/bundler.ScanBundle.func2()
github.com/evanw/esbuild/internal/bundler/bundler.go:1076 +0x245
created by github.com/evanw/esbuild/internal/bundler.ScanBundle
github.com/evanw/esbuild/internal/bundler/bundler.go:1074 +0x71b
goroutine 63 [semacquire]:
sync.runtime_Semacquire(0xc00021eba0?)
runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc0001e0c00?)
sync/waitgroup.go:136 +0x52
github.com/evanw/esbuild/internal/bundler.ScanBundle({_, _, _, _, _}, {_, _}, {_, _}, 0xc0001444e0, ...)
github.com/evanw/esbuild/internal/bundler/bundler.go:1122 +0x728
github.com/evanw/esbuild/pkg/api.rebuildImpl({0x2, 0x0, 0x5, 0x2, {0x0, 0x0}, 0x0, 0x7, {0xc0001442a0, 0x4, ...}, ...}, ...)
github.com/evanw/esbuild/pkg/api/api_impl.go:1072 +0x1f74
github.com/evanw/esbuild/pkg/api.buildImpl({0x2, 0x0, 0x5, 0x2, {0x0, 0x0}, 0x0, 0x7, {0xc0001442a0, 0x4, ...}, ...})
github.com/evanw/esbuild/pkg/api/api_impl.go:818 +0x5c5
github.com/evanw/esbuild/pkg/api.Build(...)
github.com/evanw/esbuild/pkg/api/api.go:370
main.(*serviceType).handleBuildRequest(0xc00007c2c0, 0x2?, 0xc0001e39e0?)
github.com/evanw/esbuild/cmd/esbuild/service.go:501 +0x9b8
main.(*serviceType).handleIncomingPacket(0xc0001423e0?, {0xc000023200?, 0xc00001ea00?, 0xc0001cc9c8?})
github.com/evanw/esbuild/cmd/esbuild/service.go:232 +0x191
main.runService.func3()
github.com/evanw/esbuild/cmd/esbuild/service.go:163 +0x32
created by main.runService
github.com/evanw/esbuild/cmd/esbuild/service.go:162 +0x450
goroutine 64 [chan receive]:
main.(*serviceType).sendRequest(0xc00007c2c0, {0x860380, 0xc00022f980})
github.com/evanw/esbuild/cmd/esbuild/service.go:203 +0xfa
main.(*serviceType).convertPlugins.func2.2()
github.com/evanw/esbuild/cmd/esbuild/service.go:752 +0x129
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onStart.func1()
github.com/evanw/esbuild/pkg/api/api_impl.go:1537 +0x42
github.com/evanw/esbuild/internal/bundler.ScanBundle.func1({{0x8c8ae0, 0x12}, {0xc00021ea38, 0x1, 0x1}, {0xc0001e3e60, 0x1, 0x1}, {0xc0001e3ec0, 0x1, ...}}, ...)
github.com/evanw/esbuild/internal/bundler/bundler.go:1045 +0x6a
created by github.com/evanw/esbuild/internal/bundler.ScanBundle
github.com/evanw/esbuild/internal/bundler/bundler.go:1044 +0xb5b
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I’ve created several projects on various AWS EC2 hosts (AmazonLinux2 and Ubuntu 18) and they all had the same issue with dev. build and serve works fine though, but it’s a pain to wait for the 45s rebuild every time I have a change I want to try.