首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误阻止启动:当使用静态-html处理文件时

错误阻止启动:当使用静态-html处理文件时
EN

Stack Overflow用户
提问于 2017-09-18 05:26:57
回答 2查看 2.7K关注 0票数 3

错误阻止启动:同时使用静态-html处理文件

作为我对流星的介绍,我正在测试分叉包休斯敦。我运行了以下命令。

代码语言:javascript
复制
$ 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

第一个错误消息

代码语言:javascript
复制
=> 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.

开发版本信息:

代码语言:javascript
复制
$ 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

于是我在网上搜索类似的问题,发现:

  • github点com铁流星/铁-cli杂志#256,这个问题还没有答案.

根据面值的错误消息,我在文件<head><body>标记的顶部添加了一个没有更改错误消息的client/master_layout.html

代码语言:javascript
复制
<head>
  <title>Houston</title>
</head>

<body>
    {{> _houston_master_layout}}
</body>

<template name="_houston_master_layout">
...

在最初的作者github问题中,我没有看到类似的问题,这让我认为我可能有版本问题,或者我安装了错误的东西。

作为正常检查,在一个单独的目录中,我安装了一个来自github leveluptuts/Blaze Base的简单示例,以确认当前的流星安装工作正常。OK

更新20-2017年9月

我希望找到一个已经走上这条路的人对这个问题的快速回答。到目前为止,还没有人给出答案,所以我继续我的搜索,下面是我所发现的。

流星/包裹

代码语言:javascript
复制
#static-html            # remove this package
blaze-html-templates    # add this package

解析-- head标记没有找到错误,但是会导致其他不同的错误,我将把它作为下一个调试线索。

EN

回答 2

Stack Overflow用户

发布于 2018-08-06 11:29:25

同样的问题当重新安装新的流星..。由于磁盘崩溃

代码语言:javascript
复制
meteor remove static-html
meteor add blaze-html-templates

让我的应用程序能够启动

票数 11
EN

Stack Overflow用户

发布于 2017-10-31 15:13:31

是的,有点像我的案子。流星1.5.2.2

我创建了一个-裸项目,然后添加标准文件夹,如客户端,服务器和公共的基本文件在客户端文件夹。

它在注释..meteor/包中的静态-html之后工作,然后添加blaze html-模板。

#static#删除此包

blaze html-模板#添加此包

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46272137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档