-
Creator 版本:
3.6.1 -
目标平台:
Android -
重现方式:
npm install --save behavior3js -
首个报错:
2023-04-27 11:18:45 [Scene] Did you forget the extension? Please note that you can not omit extension in module specifier.
Error: [Scene] Did you forget the extension? Please note that you can not omit extension in module specifier.
at logger (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:755:13)
at ExecutorSystem.resolve [as _detailResolve] (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:772:17)
at ExecutorSystem._resolve (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:120:14)
at SystemJS.resolve (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:36:23)
at H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:355:37
at Array.map ()
at H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:353:41
2023-04-27 11:18:45 [Scene] Error: Error: Module “…/constants” not found for file:///H:/Hero/Hero/node_modules/behavior3js/libs/behavior3-0.2.2.js
at rejector (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:759:15)
at ExecutorSystem.resolve [as _detailResolve] (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:777:13)
at ExecutorSystem._resolve (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:120:14)
at SystemJS.resolve (H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:36:23)
at H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:355:37
at Array.map ()
at H:\CocosDashboard\resources.editors\Creator\3.6.1\resources\app.asar\node_modules@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:353:41
Error: [Scene] Error: Error: Module “…/constants” not found for file:///H:/Hero/Hero/node_modules/behavior3js/libs/behavior3-0.2.2.js
- 之前哪个版本是正常的:
- 手机型号:
- 手机浏览器:
- 编辑器操作系统:
- 重现概率:
我的ts代码是:
import b3 from ‘behavior3js’;
报错截图: