小程序模板 执行yarn start 出现onGetWebpackConfig is not a function
使用官方模板小程序模板,yarn && yarn start
onGetWebpackConfig is not a function
ERR! CONFIG Failed to get config.
ERR! onGetWebpackConfig is not a function
TypeError: onGetWebpackConfig is not a function
at Object.module.exports [as setConfig] (C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\miniapp-runtime-config\src\setConfig.js:92:3)
at C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\build-plugin-miniapp\lib\index.js:30:31
at Context.runWebpackFunctions (C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\@alib\build-scripts\lib\core\Context.js:357:27)
at async Context.setUp (C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\@alib\build-scripts\lib\core\Context.js:364:13)
at async module.exports (C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\@alib\build-scripts\lib\commands\start.js:23:21)
at async Object.module.exports [as childProcessStart] (C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\create-cli-utils\lib\child-process-start.js:39:23)
at async C:\Users\nnie.VISTAPRINTUS\MiniProjects\ice-ts-temp\node_modules\ice.js\bin\child-process-start.js:6:3
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
小程序模板 执行yarn start 出现onGetWebpackConfig is not a function
使用官方模板小程序模板,yarn && yarn start
onGetWebpackConfig is not a function
build.json
:import { runApp } from 'ice';
runApp({ app: { onShow() { console.log('app show...'); }, onHide() { console.log('app hide...'); } } });