我的标识符语法意外错误是什么原因造成的?

时间:2019-07-09 16:06:08

标签: javascript html

我正在为Lampix(桌面增强现实平台)创建一个应用程序,它需要使用Lampix核心库。为什么会出现语法错误:导入行中出现意外标识符?

当我完全从他们的API网站复制该行时,不确定要尝试什么。 (https://api.lampix.co/application-development/lampixjs/api/presets.button#example

import lampix from '@lampix/core';
import './styles.css';

const buttonWatcher = lampix.presets.button(50, 50, callback, {
  width: 50,
  height: 50
});

const counterButtonOptions = {
  label: 'Increase count',
  labelPosition: 'top',
  scaleFactor: 1.2,
  animationDuration: 250
};

调试控制台读取:

Screenshot of debug console

0 个答案:

没有答案
相关问题