mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.17k stars 106 forks source link

Got this on my terminal when running canvas-sketch: can you give me a hint of how to solve it? #260

Closed hnsnl15 closed 2 years ago

hnsnl15 commented 2 years ago

Got this on my terminal when running canvas-sketch: can you give me a hint of how to solve it?

NOTE: The bundled LiveReload client could not be found, so budo will generate this on the fly. This is most likely because you are using a git cloned version of budo instead of installing it from npm. You can run this from your cloned budo folder to create a build: npm run bundle-live-client

Originally posted by @tintenfrei in https://github.com/mattdesl/budo/issues/194#issuecomment-1107882549

ashnur commented 2 years ago

This is a bug. The filename and path here https://github.com/mattdesl/budo/blob/master/lib/middleware.js#L17 is wrong. Should be

var bundledReloadClientFile = path.resolve(__dirname, '..', 'bin', 'bundle-livereload-client.js')
mattdesl commented 2 years ago

This should be fixed in latest version, please let me know if you see it again.