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/06 16:18:57 UTC
[GitHub] [echarts] nomego opened a new issue #14880: Browser ES module usage not working natively
nomego opened a new issue #14880:
URL: https://github.com/apache/echarts/issues/14880
### Version
5.1.1
### Steps to reproduce
import * as echarts from 'echarts/core';
### What is expected?
To successfully import the echarts core
### What is actually happening?
clazz.js:184 Uncaught ReferenceError: process is not defined
at enableClassCheck (clazz.js:184)
at Model.js:242
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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
[GitHub] [echarts] nomego closed issue #14880: Browser ES module usage not working natively
Posted by GitBox <gi...@apache.org>.
nomego closed issue #14880:
URL: https://github.com/apache/echarts/issues/14880
--
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
[GitHub] [echarts] echarts-bot[bot] commented on issue #14880: Browser ES module usage not working natively
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14880:
URL: https://github.com/apache/echarts/issues/14880#issuecomment-833655544
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
*A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
Have a nice day! 🍵
--
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
[GitHub] [echarts] pissang commented on issue #14880: Browser ES module usage not working natively
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14880:
URL: https://github.com/apache/echarts/issues/14880#issuecomment-834045476
@nomego 'echarts/core' is for the bundler environment. Please import from 'dist/echarts.esm.js' if you wan't to use it in the browser
--
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
[GitHub] [echarts] nenadvicentic edited a comment on issue #14880: Browser ES module usage not working natively
Posted by GitBox <gi...@apache.org>.
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
[GitHub] [echarts] nenadvicentic commented on issue #14880: Browser ES module usage not working natively
Posted by GitBox <gi...@apache.org>.
nenadvicentic commented 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.
My version of echarts is also 5.1.1.
--
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