nuxt-proxy icon indicating copy to clipboard operation
nuxt-proxy copied to clipboard

Error on deploy

Open PMLS3 opened this issue 3 years ago • 7 comments

I am using Google Cloud run when deploying my site. The plugin works 100 in development but getting the following build error.

TypeError: debug_1.Debug.extend is not a function at Object. (/usr/src/app/.output/server/node_modules/http-proxy-middleware/dist/plugins/default/debug-proxy-errors-plugin.js:5:29) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/usr/src/app/.output/server/node_modules/http-proxy-middleware/dist/plugins/default/index.js:17:14) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

In my docker file I expose port 8080, not sure if the could be the reason? ERROR: (gcloud.run.services.update) Cloud Run error: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.

PMLS3 avatar Aug 16 '22 07:08 PMLS3

Can you try the latest version and reopen it if the issue still persists? Thanks!

wobsoriano avatar Nov 09 '22 00:11 wobsoriano

Manually changing the highlighted import to 'debug' in the production bundle solves the problem. No idea why this happens though (importing the debug library from the wrong place).

image

DamianGlowala avatar Jan 27 '23 10:01 DamianGlowala

issue persist

image

joseehilton147 avatar Mar 22 '23 21:03 joseehilton147

same issue

being8000 avatar Jun 21 '23 11:06 being8000