Cannot read property 'initialize' of undefined
See original GitHub issueHello! Iβm experiencing the following issue:
(etf) rhuemmer@PCAED685:~/etf$ ./node_modules/.bin/mmdc -i ./doc/sphinx/source/hardware/linux/tcp_client.mmd -o test.png -p ./doc/sphinx/source/puppeteer-config.json
/home/rhuemmer/etf/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^
Error: Evaluation failed: TypeError: Cannot read property 'initialize' of undefined
at __puppeteer_evaluation_script__:3:20
at ExecutionContext._evaluateInternal (/home/rhuemmer/etf/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async ExecutionContext.evaluate (/home/rhuemmer/etf/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
at async ElementHandle.evaluate (/home/rhuemmer/etf/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:102:16)
at async ElementHandle.$eval (/home/rhuemmer/etf/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:650:24)
(etf) rhuemmer@PCAED685:~/etf$
Puppeteer und mermaid.cli are the latest version:
(etf) rhuemmer@PCAED685:~/etf$ npm list --depth=1
etf@ /home/rhuemmer/etf
βββ¬ @mermaid-js/mermaid-cli@8.8.2-beta.8
β βββ chalk@4.1.0
β βββ commander@6.2.0
β βββ puppeteer@5.4.1
βββ¬ bufferutil@4.0.2
β βββ node-gyp-build@4.2.3
βββ¬ chromium@3.0.2
β βββ cachedir@2.3.0
β βββ debug@4.2.0
β βββ extract-zip@1.7.0
β βββ got@11.8.0
β βββ progress@2.0.3
β βββ rimraf@2.7.1
β βββ tmp@0.0.33
β βββ tunnel@0.0.6
βββ¬ utf-8-validate@5.0.3
βββ node-gyp-build@4.2.3 deduped
Version of node
and nodejs
:
(etf) rhuemmer@PCAED685:~/etf$ nodejs -v
v8.10.0
(etf) rhuemmer@PCAED685:~/etf$ node -v
v15.0.1
This issue is related to: https://github.com/mermaid-js/mermaid/issues/662 I also already asked at https://github.com/mermaid-js/mermaid-cli/issues/70, but it turned out that mermaid-cli is just a thin-layer and I should address my question to the mermaid library. What could be the problem? Is this a bug or some configuration problem on my side?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'initialize' of ...
Currently I am working on an Upgradation project; I am facing the Below Exception when I instantiate the Custom Router Class from the...
Read more >[Tutorial] Cannot read property 'initialize' of undefined #698
I import this into App.js with import {HomeeDb} from './services/Database'; Then call it with const db = HomeeDb(); . The app crashes whenΒ ......
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >Uncaught TypeError: Cannot read property ... - SAP Community
Hi, I have developed UI5 application and deployed into ABAP server. When I try to run on ABAP server from Eclipse it is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Run into the same issue recently. As a temporary solution, you can adjust your puppeteer json file with these arguments:
Tested on WSL2 Ubuntu 20.04 - fixed issue for me. Original solution: https://github.com/puppeteer/puppeteer/issues/1837#issuecomment-534075536
just ran into this myself. my diagram is fairly long. should I post it here nonetheless?