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/05 09:46:56 UTC

[GitHub] [echarts] hoangtrung99 opened a new issue #14864: Nextjs can't import minimal bundle

hoangtrung99 opened a new issue #14864:
URL: https://github.com/apache/echarts/issues/14864


   ### Version
   5.1.1
   
   ### Steps to reproduce
   `import * as echarts from 'echarts/core'` got SyntaxError: Unexpected token 'export'
   
   ### What is expected?
   I hope to enter echart from core
   
   ### What is actually happening?
   But I got error: SyntaxError: Unexpected token 'export'
   environment: 
   - Nextjs 10.2.0
   - Typescript
   - No next config file
   
   ---
   My tsconfig.json
   ```
   {
     "compilerOptions": {
       "target": "es5",
       "lib": ["dom", "dom.iterable", "esnext"],
       "allowJs": true,
       "skipLibCheck": true,
       "strict": true,
       "forceConsistentCasingInFileNames": true,
       "noEmit": true,
       "esModuleInterop": true,
       "module": "esnext",
       "moduleResolution": "node",
       "resolveJsonModule": true,
       "isolatedModules": true,
       "jsx": "preserve",
       "baseUrl": "./",
       "paths": {
         "@/*": ["src/*"]
       }
     },
     "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
     "exclude": ["node_modules"]
   }
   ```
   
   <!-- 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] echarts-bot[bot] commented on issue #14864: Nextjs can't import minimal bundle

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


   @hoangtrung99 Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
   
   *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.


-- 
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] hoangtrung99 closed issue #14864: Nextjs can't import minimal bundle

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


   


-- 
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] hoangtrung99 commented on issue #14864: Nextjs can't import minimal bundle

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


   Echarts-for-react fault
   If I import together it will get an error


-- 
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 #14864: Nextjs can't import minimal bundle

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


   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] kunKun-tx commented on issue #14864: Nextjs can't import minimal bundle

Posted by GitBox <gi...@apache.org>.
kunKun-tx commented on issue #14864:
URL: https://github.com/apache/echarts/issues/14864#issuecomment-859634483


   Next.js currently doesn't support import es module 
   related discussion:
   1. https://github.com/vercel/next.js/issues/9607
   2. https://github.com/vercel/next.js/issues/25423 (possible workarounds)


-- 
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