Reactjs 无法在React中使用Clappr RTMP包[缺少es6语法]

Reactjs 无法在React中使用Clappr RTMP包[缺少es6语法],reactjs,ecmascript-6,clappr,Reactjs,Ecmascript 6,Clappr,我想利用clappr rtmp包来播放rtmp流。我的技术堆栈包括React,在我的一个组件中,我打算使用这个包,但clappr rtmp的语法似乎过时了 我已尝试将语法更改为ES2015,但仍然没有成功 当前有2个文件。Index.JS和Main.JS。主文件包含所有代码逻辑,而在索引文件中,我们导出默认值 export default require('./src/main.js') //Index.JS File (main entry point) export default cla

我想利用clappr rtmp包来播放rtmp流。我的技术堆栈包括React,在我的一个组件中,我打算使用这个包,但clappr rtmp的语法似乎过时了

我已尝试将语法更改为ES2015,但仍然没有成功

当前有2个文件。Index.JS和Main.JS。主文件包含所有代码逻辑,而在索引文件中,我们导出默认值

export default require('./src/main.js') //Index.JS File (main entry point)

export default class RTMP extends Flash { //RTMP class which will be used in react component)
}
我在导出默认要求('./src/main.js')上收到一个错误“未捕获SyntaxError:意外令牌导出”。