[Storybook-Native] undefined is not an object (evaluating '_expo.KeepAwake.activate')
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- react-native
- 领域
- mobile
调研方向
从 issue 中提到的 Storybook-Native AppEntry.js 开始,检查 KeepAwake import 和激活调用。使用 bluebase storybook-native:init,然后使用 bluebase storybook-native:start 来重现问题;当命令成功运行且没有 undefined KeepAwake 错误时即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
While running storybook-native undefined is not an object (evaluating '_expo.KeepAwake.activate') issue appears
Expected Behavior
bluebase storybook-native:start should run successfully.
Actual Behavior

Possible Fix
This issue is created due to storybook-native AppEntry.js its content should be,
import App from './../../bluebase/storybook-native/storybook';
import { activateKeepAwake } from 'expo-keep-awake';
import { registerRootComponent } from 'expo';
if (__DEV__) {
activateKeepAwake();
}
registerRootComponent(App);
Steps to Reproduce
- create a plugin
bluebase storybook-native:initbluebase storybook-native:start
Context
Screenshots
Your Environment
- Version used:
0.0.16 - Environment name and version (e.g. Chrome 39, node.js 5.4): node.js 10.16.3
- Operating System and version (desktop or mobile): Ubuntu 18
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BlueBaseJS/cli 的其他 Issue
-
bug
BlueBaseJS/cli#111 · 已指派 1 人 ·
-
bug
BlueBaseJS/cli#110 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 38/100
BlueBaseJS/cli#103 · 1 条评论 ·
-
bug
BlueBaseJS/cli#72 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 35/100
BlueBaseJS/cli#63 ·
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100