nitro icon indicating copy to clipboard operation
nitro copied to clipboard

"../.." is being resolved to "../test.ts"

Open huseeiin opened this issue 10 months ago • 2 comments

Environment

nitro ^2.10.4 and node 23.6.0

Reproduction

https://github.com/huseeiin/nitro-bug

Describe the bug

ERROR RollupError: routes/trpc/[...trpc].ts (2:0): "app" is not exported by "../test.ts", imported by "routes/trpc/[...trpc].ts".

Additional context

i fixed it by changing the import to "../../index"

Logs


huseeiin avatar Feb 22 '25 07:02 huseeiin

I tested your reproduction—both nitro build and nitro dev worked without errors. Could you describe how to reproduce the issue? 🙏

kricsleo avatar Apr 01 '25 14:04 kricsleo

I tested your reproduction—both nitro build and nitro dev worked without errors. Could you describe how to reproduce the issue? 🙏

it might've been anomaly, idk

huseeiin avatar Apr 04 '25 20:04 huseeiin