Doesn't import.meta.url work in cloudflare pages? i am getting this error

I am having a nuxt 3.15 app. I can build and preview it in my local pc. I am trying to deploy it to cloudflare pages. I am getting this error when trying to preview it on localhost using wrangler:
Uncaught TypeError: Invalid URL string.
Uncaught TypeError: Invalid URL string.
i found this issue on github https://github.com/cloudflare/workers-sdk/issues/7265 Doesn't cloudflare support import.meta.url ?
GitHub
🐛 BUG: [ERROR] service core:user:worker: Uncaught TypeError: Invali...
Which Cloudflare product(s) does this pertain to? Pages What version(s) of the tool(s) are you using? 3.87.0 What version of Node are you using? 22.11.0 What operating system and version are you us...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?