Closed
Description
WARN: webgl setup failed possibly due to enabling preserveDrawingBuffer config. The device may not be supported by is-mobile module! Inverting preserveDrawingBuffer option in second attempt to create webgl scene.
The above message is displayed despite that my browser supports WebGL as here
The environment:
Angular: 9.0.7
PlotlyJS: 1.54.5
Chrome: Version 83.0.4103.116 (Official Build) (64-bit)
Steps to reproduce:
- create an angular 9 project
- npm install plotly.js
- add plotly.min.js in scripts in angular.json:
"scripts": [ "node_modules/plotly.js/dist/plotly.min.js" ]
- create an angular component and add a 3D surface plot from docs
- ng serve --prod
When using the --prod from angular compiler, I think that the already minified plotly.min.js gets bundled and minified in a wrong way. If the angular app is served or build without the '--prod' option everything works as expected.
PS: The last version of Plotly that is still working with --prod flag is 1.41.3
Metadata
Metadata
Assignees
Labels
No labels