In dev mode the graph works fine and can be shown on page. However in production build. There is an exception and graph cannot be displayed. Here is the stack trace.
main-es2015.82cd2d9aa52c748ae4fb.js:1 ERROR TypeError: Cannot read property 'init' of null
at main-es2015.82cd2d9aa52c748ae4fb.js:1
at l.invoke (polyfills-es2015.0e455a55c25c81d32f30.js:1)
at i.run (polyfills-es2015.0e455a55c25c81d32f30.js:1)
at _r.runOutsideAngular (main-es2015.82cd2d9aa52c748ae4fb.js:1)
at d.createChart (main-es2015.82cd2d9aa52c748ae4fb.js:1)
at d.onOptionsChange (main-es2015.82cd2d9aa52c748ae4fb.js:1)
at d.initChart (main-es2015.82cd2d9aa52c748ae4fb.js:1)
at main-es2015.82cd2d9aa52c748ae4fb.js:1
at l.invokeTask (polyfills-es2015.0e455a55c25c81d32f30.js:1)
at Object.onInvokeTask (main-es2015.82cd2d9aa52c748ae4fb.js:1)
I am new to both Angular and echarts. Do you mind to help? Below is the version and dependency info.
C:\projects\ficceqd-qis-web-ui>ng --version
Your global Angular CLI version (9.1.11) is greater than your local
version (9.1.0). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 9.1.0
Node: 10.16.0
OS: win32 x64
Angular: 9.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: No
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.0
@angular-devkit/build-angular 0.901.0
@angular-devkit/build-optimizer 0.901.0
@angular-devkit/build-webpack 0.901.0
@angular-devkit/core 9.1.0
@angular-devkit/schematics 9.1.0
@ngtools/webpack 9.1.0
@schematics/angular 9.1.0
@schematics/update 0.901.0
rxjs 6.5.5
typescript 3.8.3
webpack 4.42.0
Hi Xieziyu,
I am using echarts in an Angular project. Basically I just used this 3D bar. https://echarts.apache.org/examples/en/editor.html?c=bar3d-punch-card&gl=1
In dev mode the graph works fine and can be shown on page. However in production build. There is an exception and graph cannot be displayed. Here is the stack trace.
I am new to both Angular and echarts. Do you mind to help? Below is the version and dependency info.