Closed rhutikcodes closed 6 months ago
Hey @rhutikcodes can you confirm what version of wrangler and itty-router-open you are running? can you also post here your wrangler.toml?
name = "backend" main = "src/index.ts" compatibility_date = "2023-04-22"
"@cloudflare/itty-router-openapi": "^0.1.10", ( its breaking on all the versions)
if you delete your local node_modules and try it won't work
we are no longer offering support to itty-router-openapi v0.x.x, can you try to upgrade to the latest version v1.0.6 Here's a migration guide
Even on the lastest version, its not running I followed this guide to create a fresh project, official documentation
i was able to replicate your issue locally, let me work on fixing it now
TLDR: The latest version of itty-router (the base library for this project) released about 10 hours ago broke some things, the quick fix for now is to force install the older version on your project with this command
npm install itty-router@4.0.26
I will be releasing a new itty-router-openapi version today that locks this dependency instead of allowing patch updates
Hey @rhutikcodes i've just released a new version of itty-router-open that fixes the issue (v1.0.7) Thanks for reporting this and let me know if you find any more issues
Description:
I have been working on a project using itty-router-openapi, following the guide provided in the official documentation. The project was functioning correctly until recently. However, as of today, I am encountering an error that prevents the project from running.
Error Encountered The specific error I am facing is:
Steps to Reproduce
Actual Behavior The project fails to run, displaying the error message: TypeError: o3.replace is not a function.
Additional Information It seems that this issue is new, as the project was working fine until today. No significant changes were made to the codebase or the environment prior to the error occurring.
Screenshot
@G4brym Can you please check