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.

the Browser image vanishes

See original GitHub issue

I caught the below error.

$ git clone https://github.com/kamiazya/rediagram.git
$ cd rediagram/docker

// I wrote a model that same as the example in README.md.
$ vim MyInfra.rediagram.tsx
$ make build
...
$ docker run --rm -v `pwd`:/workdir/ rediagram:0.1.1
(node:1) UnhandledPromiseRejectionWarning: Error: Command failed: dot -Tpng -o MyInfra.rediagram.png
Warning: No such file or directory while opening /node_modules/@rediagram/aws/assets/general/Client.png
Error: No or improper image file="/node_modules/@rediagram/aws/assets/general/Client.png"
in label of node Browser
Warning: Arrow type "point" unknown - ignoring

    at checkExecSyncError (child_process.js:630:11)
    at Object.execSync (child_process.js:666:15)
    at Object.renderDot (/node_modules/@ts-graphviz/node/lib/index.js:51:15)
    at renderToFile (/node_modules/rediagram/lib/render.js:13:12)
    at render (/node_modules/rediagram/lib/render.js:17:5)
    at Object.PNG (/node_modules/rediagram/lib/render.js:27:5)
    at Object.<anonymous> (/workdir/MyInfra.rediagram.tsx:5:1)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Module.m._compile (/usr/local/share/.config/yarn/global/node_modules/ts-node/src/index.ts:1043:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
(node:1) 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: 1)
(node:1) [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:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
odd12258053commented, Oct 16, 2020

@kamiazya Thank you, I tried it and to export an expected image.

1reaction
kamiazyacommented, Oct 16, 2020

@odd12258053

It seems that the image included in the @rediagram/aws package was unintentionally missing in versions 0.2.0 and later.

I’ll fix it to include the missing image in an upcoming release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome images disappear after loading: 9 Fixes
Chrome images disappear after loading: 9 Fixes · Try another browser · Check the content settings · Disable extensions · Enable Javascript ·...
Read more >
google chrome - Why do images disappear after they're loaded?
In this site images are being loaded by Chrome (I se part of them) then when they are loaded completely, they disappear. But...
Read more >
Images Disappearing in Chrome - General - Forum | Webflow
Upon reopening, the images have disappeared. I believe it only happens in Chrome. The thing that fixes it is changing the top margin...
Read more >
4 Ways to Handle Missing Images on a Website (Beginner's ...
Four ways to better handle missing images on your website · 1. Use alt and title attributes in the <img> tag · 2....
Read more >
Images Disappear immediately I expand and the page loads.
I just completely disable it and images show up again when i expand them. So you should try to disable some extentions on...
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