我正在为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
};
调试控制台读取: