interface GlobalProps breaks my typechecking
#14538
Replies: 6 comments
|
Hi. We haven't been able to reproduce this issue. Could you share a minimal reproduction and the TypeScript error messages? This will help us debug this. Thanks! |
|
Hi. I created a repro repo here To repro run: Now, comment out the interface defined in the worker-config file (
|
|
Could you please paste the exact error message in the thread, so not everyone has to run the repro to see it? Also can you share exactly the command you run to generate the I haven't run the repro, but I notice it looks like you store your worker-configuration.d.ts in a different package from the worker main module, and I'm guessing that's the problem. The generated But this is trying to import a file from some other package. I guess that's what doesn't work (but still, please post the info to confirm). I am not really sure if |
|
this still happens to me, you can repro here, run |
|
Moving this over to discussions as it is really a feature request. |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What versions & operating system are you using?
Windows WSLv2
System:
OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 7840H w/ Radeon 780M Graphics
Memory: 11.42 GB / 15.22 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.15.0 - /home/shmuli/.nvm/versions/node/v20.15.0/bin/node
npm: 10.9.2 - /home/shmuli/.nvm/versions/node/v20.15.0/bin/npm
pnpm: 10.12.1 - /home/shmuli/.local/share/pnpm/pnpm
bun: 1.1.38 - /home/shmuli/.bun/bin/bun
Please provide a link to a minimal reproduction
i dont have one
Describe the Bug
I recently upgraded wrangler and friends to latest versions and noticed a new type in
worker-configuration.d.tsI have a fairly complex monorepo with types defined and imported all over the place, but this line seems to break my typechecking
commenting it out fixes my typechecking
Please provide any relevant error logs
No response
All reactions