8000 🐛 Bug Report: Local start app fails on Windows · Issue #7731 · novuhq/novu · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Local start app fails on Windows #7731

Open
2 tasks done
rners01 opened this issue Feb 17, 2025 · 1 comment
Open
2 tasks done

🐛 Bug Report: Local start app fails on Windows #7731

rners01 opened this issue Feb 17, 2025 · 1 comment
Labels

Comments

@rners01
Copy link
Contributor
rners01 commented Feb 17, 2025

📜 Description

  1. pnpm install
  2. pnpm setup:project
  3. pnpm start

Im trying to run Novu app locally on Windows
But start app fails with a lot of TS errors
main errors are about @novu/application-generic

I might have no permission to fetch some packages

> nx run @novu/ee-auth:build


> @novu/ee-auth@2.0.10 build C:\Users\rusla\Desktop\novu\enterprise\packages\auth
> node ./check-ee.mjs


node:internal/modules/run_main:129
    triggerUncaughtException(
    ^
> @novu/ee-auth@2.0.10 build:esm C:\Users\rusla\Desktop\novu\enterprise\packages\auth
> node_modules/.bin/tsc -p tsconfig.json
'node_modules' is not recognized as an internal or external command,
operable program or batch file.
 ELIFECYCLE  Command failed with exit code 1.
(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v20.16.0
 ELIFECYCLE  Command failed with exit code 1.

> nx run novu:build


> novu@2.6.5 build C:\Users\rusla\Desktop\novu\packages\novu
> pnpm prebuild && tsc -p tsconfig.json && copy -r src/commands/init/templates/app* dist/src/commands/init/templates && copy -r src/commands/init/templates/github dist/src/commands/init/templates


> novu@2.6.5 prebuild C:\Users\rusla\Desktop\novu\packages\novu
> rimraf dist

The system cannot find the file specified.
 ELIFECYCLE  Command failed with exit code 1.



Failed tasks:

- @novu/ee-auth:build
- novu:build


 NX   Nx Cloud Problems

401: Unable to connect to Nx Cloud. (code: 401)


.-  TSC  Initializing type checker...
...-  TSC  Initializing type checker...
....Successfully compiled: 1111 files with swc (39.94ms)
.node:internal/modules/cjs/loader:1148
  throw err;
  ^
Error: Cannot find module './libs/application-generic'
Require stack:
- C:\Users\rusla\Desktop\novu\apps\ws\dist\bootstrap.js
- C:\Users\rusla\Desktop\novu\apps\ws\dist\main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (C:\Users\rusla\Desktop\novu\apps\ws\src\bootstrap.ts:3:29)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\ws\\dist\\bootstrap.js',
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\ws\\dist\\main.js'
  ]
}
Node.js v20.16.0
node:internal/modules/cjs/loader:1148
  throw err;
  ^
Error: Cannot find module './libs/application-generic'
Require stack:
- C:\Users\rusla\Desktop\novu\apps\worker\dist\bootstrap.js
- C:\Users\rusla\Desktop\novu\apps\worker\dist\main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (C:\Users\rusla\Desktop\novu\apps\worker\src\bootstrap.ts:6:24)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\worker\\dist\\bootstrap.js',
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\worker\\dist\\main.js'
  ]
}
Node.js v20.16.0
....Watching for file changes.
.node:internal/modules/cjs/loader:1148
  throw err;
  ^
Error: Cannot find module './libs/application-generic'
Require stack:
- C:\Users\rusla\Desktop\novu\apps\api\dist\bootstrap.js
- C:\Users\rusla\Desktop\novu\apps\api\dist\main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (C:\Users\rusla\Desktop\novu\apps\api\src\bootstrap.ts:6:24)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\api\\dist\\bootstrap.js',
    'C:\\Users\\rusla\\Desktop\\novu\\apps\\api\\dist\\main.js'
  ]
}
Node.js v20.16.0
........✔  TSC  Initializing type checker...
>  TSC  Found 0 issues.
...✔  TSC  Initializing type checker...

👍 Expected behavior

successful start app

👎 Actual Behavior with Screenshots

Image

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

Copy link
linear bot commented Feb 17, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0