joi
joi copied to clipboard
Error.captureStackTrace(this, exports.assert);
Runtime
node :v18.13.0 , npm :8.19.3
Runtime version
node :v18.13.0 , npm :8.19.3
Module version
"joi": "^17.11.0"
Used with
No response
Any other relevant information
node_modules/@hapi/hoek/lib/error.js:23
Error.captureStackTrace(this, exports.assert);
^
Error: Missing default value
at new module.exports (/user/node_modules/@hapi/hoek/lib/error.js:23:19)
at module.exports (/user/node_modules/@hapi/hoek/lib/assert.js:21:11)
at internals.Base._default (/user/node_modules/joi/lib/base.js:831:9)
at internals.Base.default (/user/node_modules/joi/lib/base.js:111:21)
at Object.
How can we help?
const some = 'properly formatted code example';
Any code to reproduce this?
actually this error was caused when I ran the project type script. I was also confused as to which code was causing my project to error when running, I clicked on the cause of the error in the terminal and went straight to the joi package
Pada Sel, 21 Nov 2023 05.02, Nicolas Morel @.***> menulis:
Any code to reproduce this?
— Reply to this email directly, view it on GitHub https://github.com/hapijs/joi/issues/3003#issuecomment-1819874786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ43O56DVNMCZ3KJSI6IRVLYFPHNPAVCNFSM6AAAAAA7S5ZSBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHA3TINZYGY . You are receiving this because you authored the thread.Message ID: @.***>
but my project uses the joy package to use or call .env as config
Pada Sel, 21 Nov 2023 05.06, Danial Bachtiar @.***> menulis:
actually this error was caused when I ran the project type script. I was also confused as to which code was causing my project to error when running, I clicked on the cause of the error in the terminal and went straight to the joi package
Pada Sel, 21 Nov 2023 05.02, Nicolas Morel @.***> menulis:
Any code to reproduce this?
— Reply to this email directly, view it on GitHub https://github.com/hapijs/joi/issues/3003#issuecomment-1819874786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ43O56DVNMCZ3KJSI6IRVLYFPHNPAVCNFSM6AAAAAA7S5ZSBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHA3TINZYGY . You are receiving this because you authored the thread.Message ID: @.***>
[image: Jepretan Layar 2023-11-21 pukul 07.26.57.png]
Pada Sel, 21 Nov 2023 pukul 05.08 Danial Bachtiar @.***> menulis:
but my project uses the joy package to use or call .env as config
Pada Sel, 21 Nov 2023 05.06, Danial Bachtiar @.***> menulis:
actually this error was caused when I ran the project type script. I was also confused as to which code was causing my project to error when running, I clicked on the cause of the error in the terminal and went straight to the joi package
Pada Sel, 21 Nov 2023 05.02, Nicolas Morel @.***> menulis:
Any code to reproduce this?
— Reply to this email directly, view it on GitHub https://github.com/hapijs/joi/issues/3003#issuecomment-1819874786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ43O56DVNMCZ3KJSI6IRVLYFPHNPAVCNFSM6AAAAAA7S5ZSBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHA3TINZYGY . You are receiving this because you authored the thread.Message ID: @.***>
@danzf if you tried to submit an image, we cannot see it.
user@danz-2 i-site-service % pm run start: dev
[email protected] start: dev npx nodemon [nodemon] 2.0.22 [nodemon] to restart at any time, enter 'rs' [nodemon] watching path(s): src/**/* [nodemon] watching extensions: ts, js [nodemon] starting 'npx ts-node ./src/main.ts* /Users/project/node_modules/@hapi/hoek/lib/error.js:23 Error.captureStackTrace(this, exports.assert); Error: Missing default value at new module. exports (/Users/project/node_modules/@hapi/hoek/lib/error.js:23:19) at module.exports (/Users/project/node_modules/@hapi/hoek/lib/assert.js:21:11) at internals. Base._default (/Users/project/node_modules/joi/lib/base.js:831:9 at internals. Base.default (/Users/project/node_modules/joi/lib/base.js:111:21) at Object.
(/Users/project/src/modules/settings/entity/schema.ts:15:46) at Module. _compile (node: internal/modules/cjs/loader: 1256:14) at Module.._compile (/Users/project/node_modules/ts-node/src/index.ts:1618:23) at Module._extensions..js (node: internal/modules/cjs/loader: 1310:10) at Object. require. extensions. [as ts] (/Users/project/node_modules/ts-node/src/index.ts:1621:12) at Module. load (node: internal/modules/cjs/loader: 1119:32) [nodemon] app crashed - waiting for file changes before starting...
Sorry but that doesn't really help, there's no reproducible code here.