[GH-ISSUE #96] npx struct in compiling phase #47

Closed
opened 2026-02-28 15:41:54 +03:00 by kerem · 8 comments
Owner

Originally created by @SimoneNascivera on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/usenocturne/nocturne-ui/issues/96

Hi, thank you for your beautiful project!

I am trying to run the UI locally on my Linux amd64 machine, and I followed the guide.

Unfortunately on npx next dev it is stuck in the compilating phase, I waited more than one hour but nothing happened.

Could you help me with this?

Thank you

Originally created by @SimoneNascivera on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/usenocturne/nocturne-ui/issues/96 Hi, thank you for your beautiful project! I am trying to run the UI locally on my Linux amd64 machine, and I followed the guide. Unfortunately on `npx next dev` it is stuck in the compilating phase, I waited more than one hour but nothing happened. Could you help me with this? Thank you
kerem closed this issue 2026-02-28 15:41:54 +03:00
Author
Owner

@brandonsaldan commented on GitHub (Mar 5, 2025):

Hi! Does it compile properly when running npm run dev?

<!-- gh-comment-id:2701941039 --> @brandonsaldan commented on GitHub (Mar 5, 2025): Hi! Does it compile properly when running `npm run dev`?
Author
Owner

@SimoneNascivera commented on GitHub (Mar 5, 2025):

Hi, thank you for the reply. When I run npm run dev in the main directory, I get this error:

> nocturne-ui@v3.0.0-beta.1 dev
> node server.js

node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/home/simone/Downloads/nocturne-ui/server.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function._load (node:internal/modules/cjs/loader:1055:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.14.0
<!-- gh-comment-id:2702202775 --> @SimoneNascivera commented on GitHub (Mar 5, 2025): Hi, thank you for the reply. When I run `npm run dev` in the main directory, I get this error: ``` > nocturne-ui@v3.0.0-beta.1 dev > node server.js node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module '/home/simone/Downloads/nocturne-ui/server.js' at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Function._load (node:internal/modules/cjs/loader:1055:27) at TracingChannel.traceSync (node:diagnostics_channel:322:14) at wrapModuleLoad (node:internal/modules/cjs/loader:220:24) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5) at node:internal/main/run_main_module:36:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v22.14.0 ```
Author
Owner

@brandonsaldan commented on GitHub (Mar 5, 2025):

You'll need to follow this part of the guide where you create your server.js file: https://github.com/usenocturne/nocturne-ui?tab=readme-ov-file#method-2-using-mkcert-and-js-webserver

<!-- gh-comment-id:2702208115 --> @brandonsaldan commented on GitHub (Mar 5, 2025): You'll need to follow this part of the guide where you create your server.js file: https://github.com/usenocturne/nocturne-ui?tab=readme-ov-file#method-2-using-mkcert-and-js-webserver
Author
Owner

@SimoneNascivera commented on GitHub (Mar 5, 2025):

I followed all the instruction, installing mkcert and creating the certificates. It is stuck again in the compiling phase:

> nocturne-ui@v3.0.0-beta.1 dev
> node server.js

> Ready on https://localhost:3000
> Also available on https://your.local.ip.address:3000
 ○ Compiling / ...

How long would this phase typically take?

<!-- gh-comment-id:2702219865 --> @SimoneNascivera commented on GitHub (Mar 5, 2025): I followed all the instruction, installing mkcert and creating the certificates. It is stuck again in the compiling phase: ``` > nocturne-ui@v3.0.0-beta.1 dev > node server.js > Ready on https://localhost:3000 > Also available on https://your.local.ip.address:3000 ○ Compiling / ... ``` How long would this phase typically take?
Author
Owner

@brandonsaldan commented on GitHub (Mar 5, 2025):

Try going to https://your.local.ip.address:3000 and see what it says/if it loads

<!-- gh-comment-id:2702343077 --> @brandonsaldan commented on GitHub (Mar 5, 2025): Try going to https://your.local.ip.address:3000 and see what it says/if it loads
Author
Owner

@SimoneNascivera commented on GitHub (Mar 6, 2025):

Even if I use the local network IP it still gets stuck in the same way. Also managed to get caddy to work for the reverse proxy, but no differences

<!-- gh-comment-id:2703112452 --> @SimoneNascivera commented on GitHub (Mar 6, 2025): Even if I use the local network IP it still gets stuck in the same way. Also managed to get caddy to work for the reverse proxy, but no differences
Author
Owner

@BBaoVanC commented on GitHub (Mar 7, 2025):

What node version are you using? And can you make sure it's on the latest version?

<!-- gh-comment-id:2705274070 --> @BBaoVanC commented on GitHub (Mar 7, 2025): What node version are you using? And can you make sure it's on the latest version?
Author
Owner

@SimoneNascivera commented on GitHub (Mar 7, 2025):

@BBaoVanC you are right. It was a nodejs issue. I create a docker container with everything and now it works

<!-- gh-comment-id:2705866314 --> @SimoneNascivera commented on GitHub (Mar 7, 2025): @BBaoVanC you are right. It was a nodejs issue. I create a docker container with everything and now it works
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nocturne-ui#47
No description provided.