Skip to content

新建项目无法运行 #15210

Closed Answered by ruochuan12
SpringHgui asked this question in Q & A
Discussion options

You must be logged in to vote

主要是这个模板中 src/index.html 中的 <title><%= projectName %></title> 的变量 projectName 没有注册成功。
可以选用 github 模版,gitee模版虽然快,但可能目前不是最新的。不过 github 模板 NervJS/taro-project-templates 中 3.6 分支、3.5分支 目前也存在这个问题 <title><%= projectName %></title>

<!DOCTYPE html>
<html>
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-touch-fullscreen" content="yes">
  <meta name="format-detection" content="telephone=no,address=no">
  <meta name="apple-mobile-web-app-status-bar-style" content="white">
  <meta http-equiv="X-UA-Compatible" c…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by honlyHuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
4 participants