错误阻止启动:同时使用静态-html处理文件
作为我对流星的介绍,我正在测试分叉包休斯敦。我运行了以下命令。
$ mkdir tempspace
$ cd tempspace
$ git clone https://github.com/gterrono/houston
$ meteor create --bare houston
$ cd houston
$ meteor node -v
v4.8.4
# meteor reset # starts from scratch, deletes databases
$ meteor update
This project is already at Meteor 1.5.2, the latest release.
Changes to your project's package version selections from updating package
versions:
dynamic-import upgraded from 0.1.1 to 0.1.3
$ meteor run --port 192.168.1.98:3000
Selecting package versions
=> Started proxy
| Bulding for web.browser
| Linking
| Building for os.linux_x32第一个错误消息
=> Errors prevented startup:
While processing files with static-html (for target web.browser):
client/partials/admin_nav.html:1: Expected <head> or <body> tag
client/partials/custom_actions.html:1: Expected <head> or <body> tag
client/partials/flash_message.html:1: Expected <head> or <body> tag
client/third-party/bootstrap.html:1: Expected <head> or <body> tag
client/third-party/collapse.js.html:1: Expected <head> or <body> tag
test/test_app/my_tmpl.html:1: Expected <head> or <body> tag
test/test_app/test.html:11: Expected <head> or <body> tag
client/admin_change_password.html:1: Expected <head> or <body> tag
client/admin_login.html:1: Expected <head> or <body> tag
client/collection_view.html:1: Expected <head> or <body> tag
client/custom_template_view.html:1: Expected <head> or <body> tag
client/db_view.html:1: Expected <head> or <body> tag
client/document_view.html:1: Expected <head> or <body> tag
client/master_layout.html:10: Expected <head> or <body> tag
client/style.css.html:1: Expected <head> or <body> tag
=> Your application has errors. Waiting for file change.
=> Started MongoDB.开发版本信息:
$ uname -a
Linux localhost.localdomain 3.6.10-4.fc18.i686.PAE #1 SMP Tue Dec 11 18:15:08 UTC 2012 i686 i686 i386 GNU/Linux
$ meteor node -v
v4.8.4
$ meteor --version
Meteor 1.5.2
# by inspection
Houston 2.0.7于是我在网上搜索类似的问题,发现:
根据面值的错误消息,我在文件<head>和<body>标记的顶部添加了一个没有更改错误消息的client/master_layout.html。
<head>
<title>Houston</title>
</head>
<body>
{{> _houston_master_layout}}
</body>
<template name="_houston_master_layout">
...在最初的作者github问题中,我没有看到类似的问题,这让我认为我可能有版本问题,或者我安装了错误的东西。
作为正常检查,在一个单独的目录中,我安装了一个来自github leveluptuts/Blaze Base的简单示例,以确认当前的流星安装工作正常。OK
更新20-2017年9月
我希望找到一个已经走上这条路的人对这个问题的快速回答。到目前为止,还没有人给出答案,所以我继续我的搜索,下面是我所发现的。
流星/包裹
#static-html # remove this package
blaze-html-templates # add this package解析-- head标记没有找到错误,但是会导致其他不同的错误,我将把它作为下一个调试线索。
发布于 2018-08-06 11:29:25
同样的问题当重新安装新的流星..。由于磁盘崩溃
meteor remove static-html
meteor add blaze-html-templates让我的应用程序能够启动
发布于 2017-10-31 15:13:31
是的,有点像我的案子。流星1.5.2.2
我创建了一个-裸项目,然后添加标准文件夹,如客户端,服务器和公共的基本文件在客户端文件夹。
它在注释..meteor/包中的静态-html之后工作,然后添加blaze html-模板。
#static#删除此包
blaze html-模板#添加此包
https://stackoverflow.com/questions/46272137
复制相似问题