You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running wrangler dev in packageA/serviceA will result in Wrangler not picking up packageA/serviceA/wrangler.toml (so it'll error with ✘ [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. `wrangler dev path/to/script`) or the `main` config field.
Instead, it thinks its running in packageA. This can be proven by running wrangler dev -c serviceA/wrangler.toml (and it correctly picking up the config).
Wrangler shouldn't hoist itself to the nearest package.json (esp. now that we support Python Workers). It should maybe hoist itself to the nearest wrangler.toml. I don't really have strong opinions on that: I personally always run Wrangler in the same dir as wrangler.toml.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered:
I am experiencing the same issue when trying to use the new monorepo features with the wrangler.toml support. It only seems to look for a wrangler.toml file inside the root directory of the git repo (even if the root directory is changed manually in cloudflare pages settings).
This does not work because if I have multiple projects in a monorepo, I would want my wrangler.toml inside the project/app folder and to only apply to that specific app, not the entire git repo. hopefully that makes sense?
FWIW, I just hit this when running pnpm wrangler ... in a subdirectory. Thankfully, npx wrangler ... in the same place works fine, so I've switched to using that.
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.43.0
What version of Node are you using?
20.12.0
What operating system and version are you using?
macOS
Describe the Bug
Running
wrangler dev
inpackageA/serviceA
will result in Wrangler not picking uppackageA/serviceA/wrangler.toml
(so it'll error with✘ [ERROR] Missing entry-point: The entry-point should be specified via the command line (e.g. `wrangler dev path/to/script`) or the `main` config field.
Instead, it thinks its running in
packageA
. This can be proven by runningwrangler dev -c serviceA/wrangler.toml
(and it correctly picking up the config).Wrangler shouldn't hoist itself to the nearest package.json (esp. now that we support Python Workers). It should maybe hoist itself to the nearest
wrangler.toml
. I don't really have strong opinions on that: I personally always run Wrangler in the same dir aswrangler.toml
.Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: