You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Clone the Novu repository (next branch).
Run npm run setup:project.
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?
📜 Description
Desciption
When running
npm run setup:project
, the script fails because it tries to copy.example.env
intoapps/widget/.env
, but thewidget
directory does not exist inapps/
.👟 Reproduction steps
next
branch).npm run setup:project
.👍 Expected behavior
👎 Actual Behavior with Screenshots
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?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: