And*_*rew 4 inertiajs npm laravel vue.js axios
我正在使用带有 Jetsream 和 Vuejs & Inertia 堆栈的 Laravel 开发应用程序,并且在运行npm audit fix.
npm audit fix在收到消息说存在 3 个高危漏洞后,我运行了 npm 命令。这是输出:
npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN @inertiajs/inertia-vue@0.2.4 requires a peer of @inertiajs/inertia@^0.2.0 || ^0.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ axios@0.21.1
+ @inertiajs/inertia@0.8.2
added 4 packages from 5 contributors and updated 2 packages in 4.307s
55 packages are looking for funding
run `npm fund` for details
fixed 2 of 3 vulnerabilities in 1150 scanned packages
1 vulnerability required manual review and could not be updated
Run Code Online (Sandbox Code Playgroud)
自从运行该命令后,站点上的每个页面都是空白的,并且在控制台中显示以下错误:
app.js:121 Uncaught (in promise) TypeError: n.swapComponent is not a function
at app.js:121
(anonymous) @ app.js:121
Promise.then (async)
setPage @ app.js:121
handleInitialPageVisit @ app.js:121
init @ app.js:121
created @ app.js:108
invokeWithErrorHandling @ app.js:104023
callHook @ app.js:106380
Vue._init @ app.js:107162
VueComponent @ app.js:107307
createComponentInstanceForVnode @ app.js:105450
init @ app.js:105281
createComponent @ app.js:108133
createElm @ app.js:108080
patch @ app.js:108669
Vue._update @ app.js:106106
updateComponent @ app.js:106227
get @ app.js:106638
Watcher @ app.js:106627
mountComponent @ app.js:106234
./node_modules/vue/dist/vue.common.dev.js.Vue.$mount @ app.js:111204
./node_modules/vue/dist/vue.common.dev.js.Vue.$mount @ app.js:114104
./resources/js/app.js @ app.js:120619
__webpack_require__ @ app.js:20
0 @ app.js:120679
__webpack_require__ @ app.js:20
(anonymous) @ app.js:84
(anonymous) @ app.js:87
Run Code Online (Sandbox Code Playgroud)
我是 laravel/这个堆栈的新手,任何追踪此问题根源的帮助将不胜感激。
我升级时遇到了同样的问题
从:
"@inertiajs/inertia": "^0.1.9",
Run Code Online (Sandbox Code Playgroud)
到
"@inertiajs/inertia": "^0.8.2",
Run Code Online (Sandbox Code Playgroud)
由于是GitHub安全审计建议的,所以现在我只回 ^0.1.9
| 归档时间: |
|
| 查看次数: |
2398 次 |
| 最近记录: |