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/02/05 05:38:10 UTC

[GitHub] [echarts] iloveuav opened a new issue #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

iloveuav opened a new issue #14218:
URL: https://github.com/apache/echarts/issues/14218


   ### Version
   5.0.1
   
   ### Steps to reproduce
   import echarts from 'echarts/lib/echarts';
   import { ThemeType, ChartType } from '@utils/Enum';
   import { IBaseChartConfig } from '@iwtypes/IBaseChartConfig';
   import blueTheme from './blue';
   import greenTheme from './green';
   import darkTheme from './dark';
   
   import greenEChartTheme from './green/green.json';
   import blueEChartTheme from './blue/blue.json';
   import darkEChartTheme from './dark/dark.json';
   
   // 注册echarts主题
   echarts.registerTheme(`${ThemeType.GREEN}theme`, greenEChartTheme);
   echarts.registerTheme(`${ThemeType.BLUE}theme`, blueEChartTheme);
   echarts.registerTheme(`${ThemeType.DARK}theme`, darkEChartTheme);
   
   export function getChartThemeConfig(
     chart: ChartType,
     theme?: ThemeType
   ): IBaseChartConfig {
     if (theme === ThemeType.BLUE) {
       return blueTheme[chart];
     } else if (theme === ThemeType.DARK) {
       return darkTheme[chart];
     } else {
       return greenTheme[chart];
     }
   }
   
   -----------------------------------
   
   ©>Uncaught TypeError:index.ts?6a07:13echarts lib echarts WEBPACK IMPORTED MODULE 0 .default.registerTheme is not a function
   
   ### What is expected?
   Subject normal registration
   
   ### What is actually happening?
   Failed to register the subject
   
   <!-- 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] pissang commented on issue #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773809253


   Please use named exports
   
   ```js
   import * as echarts from 'echarts/lib/echarts';
   ```
   
   Here is an upgrade guide.
   
   https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97
   


----------------------------------------------------------------
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 #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773802561


   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 **you have posted enough image to demo your request**. 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 #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773809253


   Please use named exports
   
   ```js
   import * as echarts from 'echarts/lib/echarts';
   ```
   
   Here is an upgrade guide.
   
   https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97
   


----------------------------------------------------------------
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] iloveuav commented on issue #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
iloveuav commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773813740


   > Please use named exports
   > 
   > ```js
   > import * as echarts from 'echarts/lib/echarts';
   > ```
   > 
   > Here is an upgrade guide.
   > 
   > https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97
   
   This issue has been resolved according to the upgrade guide, but there are other compatibility issues I will try to resolve first. Thank you for your answer


----------------------------------------------------------------
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] iloveuav commented on issue #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
iloveuav commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773813740


   > Please use named exports
   > 
   > ```js
   > import * as echarts from 'echarts/lib/echarts';
   > ```
   > 
   > Here is an upgrade guide.
   > 
   > https://echarts.apache.org/zh/tutorial.html#ECharts%205%20%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97
   
   This issue has been resolved according to the upgrade guide, but there are other compatibility issues I will try to resolve first. Thank you for your answer


----------------------------------------------------------------
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] Ovilia closed issue #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #14218:
URL: https://github.com/apache/echarts/issues/14218


   


----------------------------------------------------------------
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 #14218: The registration topic failed after upgrading from 4.9.0 to 5.0.1, as shown below

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14218:
URL: https://github.com/apache/echarts/issues/14218#issuecomment-773802561


   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 **you have posted enough image to demo your request**. 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