当前位置:网站首页>ERROR Failed to compile with 1 error
ERROR Failed to compile with 1 error
2022-08-08 16:05:00 【ps笔记】
WARNING Compiled with 1 warning 23:24:43
warning in ./src/main.js
export 'default' (imported as 'store') was not found in './store' (module has no exports)
出现这种报错是因为没有找相关导出store
在src/stoer/index.js中加入导出 export default store 即可
import { createStore } from "vuex"
//vuex 的核心作用就是帮我们管理组件之间的状态的
const store = createStore({
//所有的状态数据都放在这里(数据)
state:{
counter:0
}
})
export default store
边栏推荐
- Superset 1.2.0 installation
- 10.cuBLAS开发指南中文版--cuBLAS中的logger配置
- Nuxt - 网站接入 51LA 网站统计(详细教程)
- The origin and creation of Smobiler's complex controls
- 使用pymongo保存数据到MongoDB的工具类
- 力扣207,课程表
- 京东T9纯手打688页神笔记,SSM框架整合Redis搭建高效互联网应用
- Jingdong T9 pure hand type 688 pages of god notes, SSM framework integrates Redis to build efficient Internet applications
- C#/VB.NET 将PDF转为PDF/X-1a:2001
- 广东大学生网络安全攻防大赛CTF部分WP
猜你喜欢
10分钟快速入门RDS【华为云至简致远】
UTF-8 BOM文件导致配置文件无法读取
论文解读(soft-mask GNN)《Soft-mask: Adaptive Substructure Extractions for Graph Neural Networks》
Teach you how to use uniapp to access chat and IM instant messaging - source code sharing
Groovy XML JSON
EMQ畅谈IoT数据基础软件开源版图,引领本土开源走向全球
微信公众号+web后台的工资条发放功能的实现
Redis哨兵的配置和原理
GHOST工具访问数据库
api的封装
随机推荐
你好,这个没办法执行是啥原因啊,没登录账号,ecs里面自己安装的mysql
Introduction to Power BI
First online!Messaging middleware fairy notes, covering the essence of Alibaba's ten years of technology
NFT质押挖矿分红系统开发逻辑功能介绍
分享这些2022设计师们决不能错过的Blender新插件
最新30系显卡搭建paddle飞浆环境|含CUDA下载安装
跟我一起来学弹性云服务器ECS【华为云至简致远】
Understanding of redis slice cluster
方程组解的情况与向量组相关性转化【线代碎碎念】
带你玩转“超大杯”ECS特性及实验踩坑【华为云至简致远】
垃圾账号不胜其烦,设备指纹快速发现
C#/VB.NET 将PDF转为PDF/X-1a:2001
Lecture 207, Class Schedule
MySQL中常见的内些...啥
json根据条件存入数据库
消除游戏中宝石下落的原理和实现
京东T9纯手打688页神笔记,SSM框架整合Redis搭建高效互联网应用
bzoj2816 [ZJOI2012]网络
9.cuBLAS开发指南中文版--cuBLAS中的原子模式的配置
常见的网络安全术语之一