I'm trying SPA with CF worker which has vite-plugin integrated. However, when I'm trying to request an api through wrangler server / vite server I'm getting the following error:
✘ [ERROR] TypeError: Class constructor Test cannot be invoked without 'new'
Also the docs_url, openapi_url and redoc_url were not working.