Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle Error: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ #8

Open
arvinxx opened this issue Jan 5, 2021 · 0 comments

Comments

@arvinxx
Copy link

arvinxx commented Jan 5, 2021

Hi, I’m using block sdk to build a custom app. But I meet an error after I install an modules @antv/x6 (repo)

Bundle Error: 'import' and 'export' may appear only with 'sourceType: module'

I have checked the antv/x6 module has a es5 version in the /lib directory. And I try to import this modules use code below

import { Graph } from '@antv/x6/lib';

But still show the bundle error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant