question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

echarts-gl Cannot use import statement outside a module

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Justineocommented, Aug 8, 2021

Unfortunately, there is no paid support at this time (nor do we have long-term plans).

0reactions
Moxie1776commented, Aug 7, 2021

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?

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found