You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ 页面 app 预渲染失败:
TypeError [Error]: Cannot read property 'onLaunch' of undefined
at Object.<anonymous> (/Users/zhaoyang/Projects/preplan-taro/dist:3:13)
at NodeVM.run (/Users/zhaoyang/Projects/preplan-taro/node_modules/vm2/lib/main.js:1044:29)
at Prerender.<anonymous> (/Users/zhaoyang/Projects/preplan-taro/node_modules/@tarojs/mini-runner/dist/prerender/prerender.js:97:29)
at Generator.next (<anonymous>)
at fulfilled (/Users/zhaoyang/Projects/preplan-taro/node_modules/@tarojs/mini-runner/dist/prerender/prerender.js:5:58)
问题描述
问题1:
prerender的配置为空时会报错
问题2:
taro的prerender对Image组件的src属性处理有问题,编译出来的wxml加上了
{{ }}
,导致无法运行复现步骤
问题1:
在config/index.js的mini节点添加prerender空节点,照理说没配置match/include/exclude,不应该处理任何的页面
问题2:
src引用本地图片或者url都会报错(手动在生成的wxml去掉花括号可以正常运行)
本地图片:
url图片:
期望行为
正常运行
报错信息
问题1:
问题2:
本地图片:
url图片:
系统信息
Taro CLI 3.0.0-beta.2 environment info:
System:
OS: macOS 10.14.5
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.9.1 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.3 - /usr/local/bin/npm
npmPackages:
@tarojs/cli: 3.0.0-beta.2 => 3.0.0-beta.2
@tarojs/components: 3.0.0-beta.2 => 3.0.0-beta.2
@tarojs/taro: 3.0.0-beta.2 => 3.0.0-beta.2
@tarojs/webpack-runner: 3.0.0-beta.2 => 3.0.0-beta.2
eslint-config-taro: 3.0.0-beta.2 => 3.0.0-beta.2
react: ^16.10.0 => 16.13.1
npmGlobalPackages:
typescript: 3.7.4
补充信息
The text was updated successfully, but these errors were encountered: