当前位置:网站首页>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
边栏推荐
- 是时候展现真正实力了!揭秘2022华为开发者大赛背后的技术能力
- 消除游戏中宝石下落的原理和实现
- [Unity entry plan] Unity instance - how to protect data members through encapsulation in C#
- 基于FTP协议的Excel文件上传与下载
- 微信公众号+web后台的工资条发放功能的实现
- bzoj2816 [ZJOI2012]网络
- 手把手教你uniapp接入聊天IM即时通讯功能-源码分享
- 2020年适用于Linux的10个顶级开源缓存工具
- 全志V853芯片Tina下RTSP环境搭建方法
- Superset 1.2.0 installation
猜你喜欢
[Unity entry plan] Use the double blood bar method to control the blood loss speed of the damage area
京东T9纯手打688页神笔记,SSM框架整合Redis搭建高效互联网应用
Power BI简介
国产数据库的红利还能“吃”多久?
[Unity Starter Plan] Making RubyAdventure02 - Handling Tile Maps & Collision
Streamsets Data Collector 3.12
基于LEAP模型的能源环境发展、碳排放建模预测及不确定性分析
2022年中国全民健身发展白皮书
VIT:Transformer进军CV的里程碑
jupyter notebook hide & show all output
随机推荐
C#/VB.NET 将PDF转为PDF/X-1a:2001
【愚公系列】华为云云数据库MySQL的体验流程|【华为云至简致远】
手机注册股票开户的流程?网上开户安全?
论文解读(soft-mask GNN)《Soft-mask: Adaptive Substructure Extractions for Graph Neural Networks》
2020年适用于Linux的10个顶级开源缓存工具
微信公众号+web后台的工资条发放功能的实现
The situation of the solution of the equation system and the correlation transformation of the vector group
成员变量和局部变量的区别?
鹏城杯部分WP
VIT:Transformer进军CV的里程碑
10.cuBLAS开发指南中文版--cuBLAS中的logger配置
华为云分布式缓存服务Redis开通及使用规划教程【华为云至简致远】
带你玩转“超大杯”ECS特性及实验踩坑【华为云至简致远】
OpenAI怎么写作「谷歌小发猫写作」
Introduction to Power BI
在通达信开户安全不呢
promise学习笔记
2022年中国全民健身发展白皮书
广东大学生网络安全攻防大赛CTF部分WP
找工作的我看了国聘app