如何解决未捕获的类型错误:无法在 eval 中读取未定义的属性“使用”app.js__+_120_modules:29481
我正在尝试制作一个 framework7 cordova vue.js 应用程序,但是我遇到了一个未捕获的类型错误并且我的网页没有显示任何内容。 This is a screenshot of my console error
我的 store.js 代码:
fid
我的 app.js 代码:
===================
id | fid | tp | ct
-------------------
12 | 222 | 2 | 0
-------------------
16 | 333 | 3 | 0
-------------------
18 | 444 | 1 | 0
-------------------
19 | 555 | 2 | 0
===================
另外在编译时我也得到这个错误:
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
count: 0,message:'message from vue'
},mutations: {
}
})
我是新手,不知道怎么回事,请帮帮我!
这是我的 package.json:-
// Import Vue
import { createApp } from 'vue';
// Import Framework7
import Framework7 from 'framework7/lite-bundle';
// Import Framework7-Vue Plugin
import Framework7Vue,{ registerComponents } from 'framework7-vue/bundle';
// Import Framework7 Styles
import 'framework7/framework7-bundle.css';
// Import Icons and App Custom Styles
import '../css/icons.css';
import '../css/app.css';
// Import App Component
import App from '../components/app.vue';
import store from '../pages/auth/store/store';
// Init Framework7-Vue Plugin
Framework7.use(Framework7Vue);
// Init App
const app = createApp(App);
store,// Register Framework7 Vue components
registerComponents(app);
// Mount the app
app.mount('#app');
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。