Skip to content

🐛 Bug Report: npm run setup:project fails due to missing 'apps/widget/.example.env' #8250

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

Open
2 tasks done
Akhilbisht798 opened this issue May 6, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working Self Host triage

Comments

@Akhilbisht798
Copy link
Contributor

📜 Description

Desciption

When running npm run setup:project, the script fails because it tries to copy .example.env into apps/widget/.env, but the widget directory does not exist in apps/.

👟 Reproduction steps

  1. Clone the Novu repository (next branch).
  2. Run npm run setup:project.
  3. Error occurs:
    Error: ENOENT: no such file or directory, copyfile '/home/.../novu/apps/widget/.example.env' -> '/home/.../novu/apps/widget/.env'
    
    

👍 Expected behavior


👎 Actual Behavior with Screenshots

Pre-populating .env files from .example.env for [api,ws,worker]
Pre-populating .env files from .example.env for [web,widget]
Populating /home/akhil/code/novu/scripts/../apps/widget with .env file
node:internal/fs/sync:49
  binding.copyFileSync(
          ^

Error: ENOENT: no such file or directory, copyfile '/home/akhil/code/novu/apps/widget/.example.env' -> '/home/akhil/code/novu/apps/widget/.env'
    at Object.copyFile (node:internal/fs/sync:49:11)
    at Object.copyFileSync (node:fs:2949:10)
    at prePopulateEnv (/home/akhil/code/novu/scripts/setup-env-files.js:10:10)
    at /home/akhil/code/novu/scripts/setup-env-files.js:22:3
    at Object.<anonymous> (/home/akhil/code/novu/scripts/setup-env-files.js:25:3)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'copyfile',
  path: '/home/akhil/code/novu/apps/widget/.example.env',
  dest: '/home/akhil/code/novu/apps/widget/.env'
}

Novu version

Latest

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

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 May 6, 2025

@github-actions github-actions bot added the triage label May 6, 2025
@scopsy scopsy added bug Something isn't working Self Host labels May 6, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Self Host triage
Projects
None yet
Development

No branches or pull requests

2 participants