openwrt module ‘luci.cbi.datatypes‘ not found解决方法

/usr/lib/lua/luci/controller/openclash.lua:102: module 'luci.cbi.datatypes' not found:
    no field package.preload['luci.cbi.datatypes']
    no file './luci/cbi/datatypes.lua'
    no file '/usr/share/lua/luci/cbi/datatypes.lua'
    no file '/usr/share/lua/luci/cbi/datatypes/init.lua'
    no file '/usr/lib/lua/luci/cbi/datatypes.lua'
    no file '/usr/lib/lua/luci/cbi/datatypes/init.lua'
    no file './luci/cbi/datatypes.so'
    no file '/usr/lib/lua/luci/cbi/datatypes.so'
    no file '/usr/lib/lua/loadall.so'
    no file './luci.so'
    no file '/usr/lib/lua/luci.so'
    no file '/usr/lib/lua/loadall.so'
stack traceback:
    [C]: in function 'require'
    /usr/lib/lua/luci/controller/openclash.lua:102: in main chunk
    [C]: in function 'require'
    /usr/lib/lua/luci/dispatcher.lua:1136: in function 'createindex'
    /usr/lib/lua/luci/dispatcher.lua:1237: in function 'createtree'
    /usr/lib/lua/luci/dispatcher.lua:639: in function 'menu_json'
    /usr/lib/lua/luci/dispatcher.lua:888: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:483: in function </usr/lib/lua/luci/dispatcher.lua:482>

解决方法:

安装 luci-compat  依赖包即可