[Vuejs]-Uncaught (in promise) TypeError: Cannot read properties of null (reading 'subTree')

0👍

With this, my vue HTML finally loads.

Remove these:-

resources/views/layouts/app.blade.php

{{--<script src="https://unpkg.com/vue@3"></script>--}}
{{--<script src="https://unpkg.com/vue-router@4"></script>--}}
</body>
</html>

Add this to your main file:-

resources/js/app.js

import * as Vue from 'vue';
import * as VueRouter from 'vue-router';

npm run dev and voila! Thanks to: Murad for a very useful comment: Vue3 Presence of a css class on element in single file component causes rendering failure when added to dom, Invalid VNode type: Symbol()

Leave a comment