echarts-gl Cannot use import statement outside a module
See original GitHub issueThe type of this issue / Issue 类型
- Feature request / 新特性需求
- Bug report / Bug 报告
Not introduced by ECharts / 非 ECharts 本身问题
Problems about ECharts itself are not handled in this repo. / 本 repo 不负责处理 ECharts 本身的问题。
- I’ve checked it’s not a problem of ECharts itself. / 我已检查过,这个问题非 ECharts 本身的问题。 I have checked it as far as I can figure out, this seems to be unique to vue-echarts with echarts-gl
Details / 详情
Vue version / Vue 版本
- Vue 3
- Vue 2
How are you importing Vue-ECharts? / 你是如何引入 Vue-ECharts 的?
- Importing
vue-echarts
with a bundler environment / 在 webpack 等打包工具环境下引入vue-echarts
- Using the global variable by including
<script>
tags / 通过<script>
标签引入全局变量
The version of Vue-ECharts you are using / Vue-ECharts 的版本
echarts 5.1.2 echarts-gl 2.0.5 nuxt 2.15.7 vue-echarts 6.0.0-rc.6
Reproduction link / 复现链接
https://codesandbox.io/s/vue-echarts-echarts-gl-import-error-zrkt0
I hope this is the correct place to submit this bug. Navigate to a bogus URL in the codesandbox browser, use the error screen to navigate back to the home page and this chart will render. On launch or refresh this error occurs.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
"Uncaught SyntaxError: Cannot use import statement outside ...
I got this error because I forgot the type="module" inside the script tag: <script type="module" ...
Read more >How to fix "cannot use import statement outside a module"
Here is how to fix the error Uncaught SyntaxError: cannot use import statement outside a module in JavaScript.
Read more >SyntaxError: Cannot use import statement outside a module ...
When you use ECMAScript Modules in Node (v13.6.0 for me) combined with Jest, the following error occurs: SyntaxError: Cannot use import ...
Read more >How to Solve "Cannot use import statement outside a module ...
In this post, we're going to take a look at the error that occurs when you try to use the import statement in...
Read more >Cannot use import statement outside a module in JavaScript
The "SyntaxError: Cannot use import statement outside a module" error is thrown when the JavaScript interpreter encounters an import statement ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unfortunately, there is no paid support at this time (nor do we have long-term plans).
I did test this yesterday and I have confirmed that it is working. Thank you for your help on this. Above a request had been asked about an option for paid support from time to time, is that an option?