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
Unable to run basic example: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'path')
#2
Comments
Hi there - denoflare is still in the early stages of development, but I'll try to help you get started. Thanks for the repro steps and info - this error message is not the greatest, I'll see if I can put something better in there. Also I'm not sure if anyone's tried this yet on Windows - I'll try to reproduce this in a vm today and see if there's something inherently different in path checking/detection. In the meantime you might try creating a configuration file with a script config to give your script a name, it will come in handy for running/deploying/specifying options/env vars args in the future. |
It might not be Windows-specific after all. Was able to reproduce locally on a simple local script without a config file. Just released 0.3.1 that should fix that problem, and updated the docs page. Upgrade (below), then try it again and let me know how it goes deno install --unstable --allow-read --allow-net --allow-env --name denoflare --force https://raw.githubusercontent.com/skymethod/denoflare/v0.3.1/cli/cli.ts |
Thanks for your investigation! Upgrading to 0.3.1 and re-running the
Despite the error message, the worker seems to be running - navigating to
I will try to run some of the other samples to see if the error is consistent. |
So what's happening is your worker is being served, but the module scanner failed, so no reloads would happen automatically on changes. I believe I fixed this in master (installation below), want to give it a shot? deno install --unstable --allow-read --allow-net --allow-env --name denoflare --force https://raw.githubusercontent.com/skymethod/denoflare/cb29abbf022213282adbfbd00fb7530f3f9a0324/cli/cli.ts |
Hi! |
Great! Released v0.3.2 just now which includes that fix |
Hi!
I'm unable to run the basic worker example.
System information
Steps to reproduce:
Install denoflare:
deno install --unstable --allow-read --allow-net --allow-env --name denoflare --force https://raw.githubusercontent.com/skymethod/denoflare/v0.3.0/cli/cli.ts
Clone the denoflare repository and open a command line in the
examples/hello-worker
directoryRun example via:
denoflare serve .\hello.ts
, this results in:The text was updated successfully, but these errors were encountered: