Laravel 8,Jetstream,惯性:在DOM中寻找应用

问题描述

确定,尝试将我们的Vuetify应用程序移动到L8,Jetstream和惯性堆栈。我在./resources/js/app.js

中看到了这一行
const app = document.getElementById('app');

它正在获取DOM中的app元素。
我的问题是---是什么定义了应用程序。

在我的L7应用中,它是在单个blade.PHP中定义的

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
    <div id="app"></div>
    <script src="{{ asset('js/app.js') }}" defer></script>
</body>

我在L8中找不到它,这得到了...。

initialPage: JSON.parse(app.dataset.page),[Vue warn]: Error in render: "SyntaxError: Unexpected token u in JSON at position 0"

谢谢吉姆在佛罗里达

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)