luisenriqueramos1977 commented on issue #12916: URL: https://github.com/apache/incubator-echarts/issues/12916#issuecomment-654102770
I think I included document as follows: var document = document.getElementById('dom-id'); and later got this error: var myChart = echarts.init(document.getElementById('main')); ^ TypeError: Cannot read property 'getElementById' of undefined at Object.<anonymous> (/home/lsrs/Desktop/jsexercise/egraphtest/index.js:6:37) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) [Done] exited with code=1 in 0.693 seconds Until now, I have not been able to run any example, and I feel frustrated. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org