You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/05/07 14:30:19 UTC

[GitHub] [echarts] nenadvicentic edited a comment on issue #14880: Browser ES module usage not working natively

nenadvicentic edited a comment on issue #14880:
URL: https://github.com/apache/echarts/issues/14880#issuecomment-834451121


   I have similar issue with the following import, found in [ECharts 5 Upgrade Guide](https://echarts.apache.org/en/tutorial.html#ECharts%205%20Upgrade%20Guide):
   
   ```typescript
   import * as echarts from "echarts/lib/echarts";
   ```
   The culprit is this line of code in `clazz.js` line 248:
   
   ```js
   if (process.env.NODE_ENV !== 'production')
   ```
   
   I get NodeJS `process` reference in a web browser - even though I am using bundler as well.
   
   My version of echarts is also 5.1.1.
   
   Following import fixed the issue:
   
   ```typescript
   import * as echarts from "echarts/dist/echarts";
   ```


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org