我正在使用框架 GameClosure 但在尝试创建过滤器时遇到错误。我去看了Docs
在 DevKit Docs 我发现了这个:
GameClosure DevKit 文档 - 类:ui.filter.Filter
import ui.filter.Filter as Filter;
var filter = new Filter();
这是错误:
Error loading module:
[[ import ui.filter.Filter as Filter ]]
requested by: ./src/Level0/Level0.js
current directory: http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/
Error: requested import (ui.filter.Filter) not found
looked in:
sdk/timestep/ui/filter/Filter.js
Import Stack:
0 : src.Application (./src/Application.js)
1 : src.Level0.Level0 (./src/Level0/Level0.js)
Error: requested import (ui.filter.Filter) not found
looked in:
sdk/timestep/ui/filter/Filter.js
Import Stack:
0 : src.Application (./src/Application.js)
1 : src.Level0.Level0 (./src/Level0/Level0.js)
at loadModule (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:536:11)
at importer (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:688:18)
at Object.jsio (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:81:21)
at Object.$$src_Level0_Level0 (http://127.0.0.1:8802/./src/Level0/Level0.js:4:1)
at execModuleDef (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:605:7)
at importer (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:744:6)
at Object.jsio (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:81:21)
at Object.$$src_Application (http://127.0.0.1:8802/./src/Application.js:3:1)
at execModuleDef (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:605:7)
at importer (http://127.0.0.1:8802/simulate/ricettivointermedio/native-ios/native-ios.js:744:6) native-ios.js:385
Uncaught Error: requested import (ui.filter.Filter) not found
looked in:
sdk/timestep/ui/filter/Filter.js
Import Stack:
0 : src.Application (./src/Application.js)
1 : src.Level0.Level0 (./src/Level0/Level0.js) native-ios.js:536