我正在做 Meteor React simple-todos 教程。
第一步只是创建应用程序,cd 进入应用程序目录并运行meteor。到目前为止,一切都很好。
我按照步骤 2 中的说明进行了更改,但未显示待办事项列表。我得到一个空白屏幕。
代码与给出的完全相同https://www.meteor.com/tutorials/react/components https://www.meteor.com/tutorials/react/components浏览器或控制台中不显示任何错误消息。
版本:Meteor 1.5.2.1,操作系统 = Ubuntu 16.04 LTS
尝试删除Blaze
meteor remove blaze-html-templates
And add static-html
meteor add static-html
在此之前,请确保您的文件中没有拼写错误。您可以从这些文件中复制代码。别担心,这些代码仅用于第 2 步。
客户端/main.html https://raw.githubusercontent.com/meteor/simple-todos-react/b8c5da655108be87962f794f2814e2036a12a7e4/client/main.html
客户端/main.js https://raw.githubusercontent.com/meteor/simple-todos-react/4459f38b759d17ade45da61e67265fb48e6f39c5/client/main.js
导入/ui/App.js https://raw.githubusercontent.com/meteor/simple-todos-react/3f57957fe2f5797f651f2892374a99e626d97d72/imports/ui/App.js
导入/ui/Task.js https://raw.githubusercontent.com/meteor/simple-todos-react/3084ff5657bb50fb6c14772b0af820f6760933d8/imports/ui/Task.js
如果这不起作用,您可以随时使用命令恢复add
代替remove
添加回来blaze
并删除static-html
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)