winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.95k stars 195 forks source link

react website can't be access in github actions #5448

Open skorfmann opened 8 months ago

skorfmann commented 8 months ago

I tried this:

in https://github.com/winglang/examples/pull/33 the website url can't be fetched. Not exactly sure what's going on. Will need to investigate further.

when running the react-website example in the console, it doesn't start up properly. The tests itself are working fine locally.

This happened:

wing it
  wing:update checking for updates... +0ms
The Wing Console is running at http://localhost:3000/
Analytics event stored at /var/folders/2x/k4trzqh147x6rywbk608tv000000gn/T/wing-analytics/006a9eef-e329-445f-a84c-92d31a49d63f.json
/Users/sebastian/.volta/tools/image/packages/winglang/lib/node_modules/winglang/node_modules/@winglang/sdk/lib/target-sim/react-app.inflight.js:43
                    throw new Error(stderr);
                    ^

Error: (node:78229) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:78229) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
/Users/sebastian/projects/wing-cloud/examples/examples/react-website/website/node_modules/webpack-dev-server/lib/Server.js:2557
        throw error;
        ^

Error: listen EADDRINUSE: address already in use 0.0.0.0:30353
    at Server.setupListenHandle [as _listen2] (node:net:1872:16)
    at listenInCluster (node:net:1920:12)
    at doListen (node:net:2069:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '0.0.0.0',
  port: 30353
}

Node.js v20.10.0

    at /Users/sebastian/.volta/tools/image/packages/winglang/lib/node_modules/winglang/node_modules/@winglang/sdk/lib/target-sim/react-app.inflight.js:43:27
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:514:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:514:28)
    at Pipe.<anonymous> (node:net:337:12)

Node.js v20.10.0

I expected this:

it should work

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.54.35

Node.js Version

20

Platform(s)

MacOS

Community Notes

staycoolcall911 commented 8 months ago

May be related to #5510