你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[]ReferenceError: exports is not defined
用Typescript编写项目, 编译成功。为何运行之后报错:
ReferenceError: exports is not defined
没有找到相关结果
已邀请:
与内容相关的链接
提交
2 个回复
Aar0n
赞同来自:
这要检查代码逻辑咯,是否报错看的是语法,逻辑有问题一样是会报错的
CGH
赞同来自:
同遇到
看样子像是LayaIDE并不支持ES6,因此ES6中常用的import/exports无法识别
真心希望laya变好,变得更加完善
要回复问题请先
登录
发起人
疯狂的码头
相关问题
Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined?
【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined
layaair-cmd 编译提示 ReferenceError: primordials is not defined
window is not defined
laya3.0 __awaiter is not defined
exports is not defined (js篇)
LayaNative 预览在Android底下报错 ConchShader is not defined
引用了laya.physics3D.runtime.js后报enum_btConstraintParams_BT_CONSTRAINT_ERP is not defined
报错:__glsl is not defined,而且bundle.js出现__glsl
导入第三方JS,在微信下提示xxx not defined
新建的ui示例项目,报错ui is not defined
问题状态
最新活动:
2018-08-29 20:18
浏览:
3279
关注:
3
人
商务合作
2 个回复
Aar0n
赞同来自:
CGH
赞同来自:
看样子像是LayaIDE并不支持ES6,因此ES6中常用的import/exports无法识别
真心希望laya变好,变得更加完善