question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null

See original GitHub issue

Hi. trying to npx deploy-node-app and get : " UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null" the complete log :

npx: installed 120 in 22.963s (node:1196) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘toString’ of null at execSyncWithEnv (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\util.js:151:55) at ensureBinaries (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\util.js:164:24) at DeployNodeApp (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\deployNodeApp.js:509:30) at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\index.js:38:1) at Module._compile (internal/modules/cjs/loader.js:1147:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1167:10) at Module.load (internal/modules/cjs/loader.js:996:32) at Function.Module._load (internal/modules/cjs/loader.js:896:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at C:\Program Files\nodejs\node_modules\npm\node_modules\libnpx\index.js:268:14 (node:1196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:1196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erulabscommented, Jun 13, 2020

Hey @mboveiri - Thanks!! I’ve published deploy-node-app@2.0.13 (also deploy-node-app@next) which should now properly figure out the path to sh on many different systems!

Thanks again for your help - hoping this version works for you - DNA2.0 is a work-in-progress, and it powers our repo builder at https://kubesail.com - so its slated to get lots and lots of love in the next few months! Please let us know if you run into any other issues!

0reactions
mboveiricommented, Jun 13, 2020

Thank you it’s work properly now, hope I was able to help the progress. interest to new version and features.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of null (reading 'toString') in JS
The "TypeError: Cannot read properties of null (reading 'toString')" occurs when the toString() method is called on a null value. To solve the...
Read more >
Uncaught TypeError: Cannot read property 'toString' of null
So whenever you try to access a property under a value of null or undefined in JavaScript and try to read any property,...
Read more >
TypeError: Cannot read property 'toString' of null #304 - GitHub
The issue is that the default value of id is null and the IdFixer component is broken, as it accesses toString of null....
Read more >
Cannot read property 'toString' of undefined - Syncfusion
Forum Thread - Uncaught TypeError: Cannot read property 'toString' of undefined - JavaScript ... I get the following error when I do this:....
Read more >
TypeError: Cannot read property 'toString' of null - Help
What seems to be the problem: I am getting a JavaScript error on date field <input ... TypeError: Cannot read property 'toString' of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found