Skip to main content

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

  • December 19, 2020
  • 0 replies
  • 10 views

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

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

I tried to add a .babelrc file to add prset-env but don’t work. what should i do to solve this problem?

0 replies

Be the first to reply!