vivominigame / issues

vivo小游戏问题反馈和统一回复入口
13 stars 9 forks source link

编译时报错,项目在微信和字节都正常运行 #175

Open koibubbles opened 4 years ago

koibubbles commented 4 years ago

mg-service build

INFO mg-service build INFO ### Cli Packager ### 开始编译原整包... INFO ### Cli Packager ### 原整包编译完成,开始生成原整包 INFO ### Cli Packager ### 开始压缩:com.application.demo.rpk from:D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\build INFO ### Cli Packager ### 压缩完成:com.application.demo.rpk ERROR ./src/js/main.js Module not found: Error: Can't resolve 'base/base.js' in 'D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\src\js' resolve 'base/base.js' in 'D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\src\js' Parsed request is a module using description file: D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\package.json (relative path: ./src/js) Field 'browser' doesn't contain a valid alias configuration resolve as module D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\src\js\node_modules doesn't exist or is not a directory D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\src\node_modules doesn't exist or is not a directory D:\游戏\泡泡块2萌宠消除\vivo\node_modules doesn't exist or is not a directory D:\游戏\泡泡块2萌宠消除\node_modules doesn't exist or is not a directory D:\游戏\node_modules doesn't exist or is not a directory D:\node_modules doesn't exist or is not a directory looking for modules in D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules using description file: D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration using description file: D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\package.json (relative path: ./base.js) no extension Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js doesn't exist .webpack.js Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.webpack.js doesn't exist .web.js Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.web.js doesn't exist .js Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.json doesn't exist .mix Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.mix doesn't exist .ux Field 'browser' doesn't contain a valid alias configuration D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js.ux doesn't exist as directory D:\游戏\泡泡块2萌宠消除\vivo\popaokuai2\node_modules\base\base.js doesn't exist

jesseband commented 4 years ago

什么引擎导出的 什么版本 删掉原来的文件,尝试重新导出vivo游戏

koibubbles commented 4 years ago

什么引擎导出的 什么版本 删掉原来的文件,尝试重新导出vivo游戏

koibubbles commented 4 years ago

自研的引擎,导出结构和微信小程序的一致。基于微信小程序适配vivo编译的结构,然后用mg build报错