我正在处理我的Nuxt项目,添加新文件后。vue,出现此错误:
Failed to compile with 1 errors friendly-errors 16:19:30
ERROR in ./.nuxt/router.js friendly-errors 16:19:30
Module build failed (from ./node_modules/eslint-loader/index.js): friendly-errors 16:19:30
Error: ENOENT: no such file or directory, open '/Users/jacopotabani/Desktop/my-movie-app-PWA-v2/.nuxt/router.js
如果我查看文件夹.nuxt,则文件“ router.js”消失。 我试图从以前制作的项目的副本中复制router.js文件,但是重新加载应用程序后,文件“ router.js”在“ router 4.js”中会自动更改。
我该如何解决?
答案 0 :(得分:0)
在使用<div className="tooltip" style={{ "fontSize": "12px", "fontWeight": "bold" }}> Hello
<span className="tooltiptext"> <p>{this.state.page_options.hoverMessages.hello}</p> </span>
</div>
时,通常应使用let compileDate = String(Date())
let df = DateFormatter()
df.dateFormat = "MMM-dd-yyyy"
let usLocale = NSLocale(localeIdentifier: "en_US")
df.locale = usLocale
let aDate: Date? = df.date(from: compileDate)
用于生成路由器配置对象的{
"log": "{\"message\":\"TR=failed to send order confirmation to \\\"someone@example.com\\\": rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = \\\"transport: Error while dialing dial tcp 10.64.5.235:5000: i/o timeout\\\"\",\"severity\":\"warning\",\"timestamp\":\"2019-07-23T00:47:07.216693578Z\"}\n",
"stream": "stdout",
"time": "2019-07-23T00:47:07.222368843Z"
}
{
"log": "{\"message\":\"IP=failed to send order confirmation to \\\"someone@example.com\\\": rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = \\\"transport: Error while dialing dial tcp 10.64.5.235:5000: i/o timeout\\\"\",\"severity\":\"warning\",\"timestamp\":\"2019-07-23T00:47:07.216693578Z\"}\n",
"stream": "stdout",
"time": "2019-07-23T00:47:07.222368843Z"
}
目录。 Reference
Nuxt.js
根据以下信息自动生成pages
配置 您在Nuxt
目录中的Vue文件的文件树。
例如,让我们考虑您具有以下文件树:
Nuxt.js
将生成以下路由器配置:
vue-router