An itty-router-openapi app stopped working with TypeError: o3.replace is not a function

After a week of developing a small REST API which was working beautifully, suddenly this error just appeared. Going back to previous verisons of my code doesn't work, neither does reverting to previous wrangler versions, deleting node_modules and reinstalling, restarting machine ... any idea how to proceed?
7 Replies
WillTolmie
WillTolmieOP12mo ago
Additionally, creating the OpenAPI example using npm create cloudflare@latest fails with the same error. This all started happening after upgrading to wrangler 3.22.4 from 3.22.2 but I cannot seem to revert to a working setup
RhutikG
RhutikG12mo ago
Same issue. Our production is breaking
WillTolmie
WillTolmieOP12mo ago
GitHub
🐛 BUG: An itty-router-openapi app stopped working with TypeError: o...
Which Cloudflare product(s) does this pertain to? Uncertain What version(s) of the tool(s) are you using? Wrangler 3.22.4 What version of Node are you using? v20.10.0 What operating system are you ...
WillTolmie
WillTolmieOP12mo ago
@RhutikG I’m wondering if it’s worth filing a bug with itty-router-openapi too
RhutikG
RhutikG12mo ago
hi @WillTolmie
RhutikG
RhutikG12mo ago
GitHub
TypeError: o3.replace is Not a Function - Project Not Running · Iss...
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, a...
WillTolmie
WillTolmieOP12mo ago
Confirmed that the npm install [email protected] fix works
Want results from more Discord servers?
Add your server