我是React的新手,所以也许我在这里遗漏了一些东西,但我想使用它的Panel组件react-bootstrap.我正在关注文档,但获得以下行为.
此代码有效:
import { Panel } from 'react-bootstrap';
(...)
return ( # This is inside my component's render()
<Panel>
Foo
</Panel>
)
Run Code Online (Sandbox Code Playgroud)
此代码不起作用:
import { Panel } from 'react-bootstrap';
(...)
return ( # This is inside my component's render()
<Panel>
<Panel.Body>Foo</Panel.Body>
</Panel>
)
Run Code Online (Sandbox Code Playgroud)
错误说明:未捕获错误:元素类型无效:预期字符串(对于内置组件)或类/函数(对于复合组件)但得到:undefined.您可能忘记从其定义的文件中导出组件.检查渲染方法(ComponentName).
我究竟做错了什么?非常感谢!
反应15.6.2,react-bootstrap 0.31.5
我在 Elastic Beanstalk 实例上启动 Celery 工作器时遇到问题。几秒钟后,它只是意外退出,没有错误。实例应该有足够的内存。我正在通过日志级别调试附加工作人员的输出(敏感信息由**代替)。任何指导都会非常有帮助。谢谢。
(venv) [ec2-user@ip-** app]$ celery -A app worker -l debug
[12/Mar/2018 10:18:29] DEBUG [raven.contrib.django.client.DjangoClient:265] Configuring Raven for host: <raven.conf.remote.RemoteConfig object at 0x7f556309e940>
-------------- celery@ip-** v4.1.0 (latentcall)
---- **** -----
--- * *** * -- Linux-4.9.75-25.55.amzn1.x86_64-x86_64-with-glibc2.3.4 2018-03-12 10:18:29
-- * - **** ---
- ** ---------- [config]
- ** ---------- .> app: app:0x7f556998edd8
- ** ---------- .> transport: sqs://**:**@localhost//
- ** ---------- .> results:
- *** --- * --- .> concurrency: 1 (prefork)
-- ******* ---- …Run Code Online (Sandbox Code Playgroud)