Title: ERROR in ./node_modules/image-size/lib/index.js · Issue #5377 · plotly/plotly.js · GitHub
Open Graph Title: ERROR in ./node_modules/image-size/lib/index.js · Issue #5377 · plotly/plotly.js
X Title: ERROR in ./node_modules/image-size/lib/index.js · Issue #5377 · plotly/plotly.js
Description: Plotly.js version: 1.58.4 Platform: mac bis sur When upgrading plotly from 1.52.2 to 1.58.4 a new error appears when trying to run it in a react webpage: ERROR in ./node_modules/image-size/lib/index.js Module not found: Error: Can't reso...
Open Graph Description: Plotly.js version: 1.58.4 Platform: mac bis sur When upgrading plotly from 1.52.2 to 1.58.4 a new error appears when trying to run it in a react webpage: ERROR in ./node_modules/image-size/lib/inde...
X Description: Plotly.js version: 1.58.4 Platform: mac bis sur When upgrading plotly from 1.52.2 to 1.58.4 a new error appears when trying to run it in a react webpage: ERROR in ./node_modules/image-size/lib/inde...
Opengraph URL: https://github.com/plotly/plotly.js/issues/5377
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR in ./node_modules/image-size/lib/index.js","articleBody":"Plotly.js version: 1.58.4\r\nPlatform: mac bis sur\r\n\r\nWhen upgrading plotly from 1.52.2 to 1.58.4 a new error appears when trying to run it in a react webpage:\r\n\r\n```\r\nERROR in ./node_modules/image-size/lib/index.js\r\nModule not found: Error: Can't resolve 'fs' in '/local/home/xxx/node_modules/image-size/lib'\r\n @ ./node_modules/image-size/lib/index.js 3:9-22\r\n @ ./node_modules/plotly.js/src/traces/image/helpers.js\r\n @ ./node_modules/plotly.js/src/traces/image/calc.js\r\n @ ./node_modules/plotly.js/src/traces/image/index.js\r\n @ ./node_modules/plotly.js/lib/image.js\r\n @ ./node_modules/plotly.js/lib/index.js\r\n @ ./src/util/ui/MultiChart.js\r\n @ ./src/xxx/xxx.js\r\n @ ./src/App.js\r\n @ ./src/index.development.js\r\n```\r\n\r\nIs there some new dependency which needs to be added?","author":{"url":"https://github.com/bishonen","@type":"Person","name":"bishonen"},"datePublished":"2021-01-06T17:29:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/5377/plotly.js/issues/5377"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:270d93de-ee24-9802-258b-dcb62f4e173f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A108:73D73:569787:72B5D8:6A5B9035 |
| html-safe-nonce | 0c4551216f1d579a467d836281bfc703ab8107d7d7257946aaf1e2b7259e05d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA4OjczRDczOjU2OTc4Nzo3MkI1RDg6NkE1QjkwMzUiLCJ2aXNpdG9yX2lkIjoiNTI3NTcxMTEzNTUyMTkzNTQxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30f3474b1f41b4cf6be921d5bf4868dafd9e20b636be527d5fdf5e3fd06d6ba8 |
| hovercard-subject-tag | issue:780723325 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/5377/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b68ee4ac55199242145b0d8174128ded5a2e1d8edba9c31cbb16c90adea7d550/plotly/plotly.js/issues/5377 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b68ee4ac55199242145b0d8174128ded5a2e1d8edba9c31cbb16c90adea7d550/plotly/plotly.js/issues/5377 |
| og:image:alt | Plotly.js version: 1.58.4 Platform: mac bis sur When upgrading plotly from 1.52.2 to 1.58.4 a new error appears when trying to run it in a react webpage: ERROR in ./node_modules/image-size/lib/inde... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bishonen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width