vue.js - VUEJS - 找不到导出 i18n
问题描述
我在 VueJs 中遇到了 i18n 的问题。我尝试安装 i18n 插件,在“npm run serve”之后,我在浏览器中收到此错误:
vue-router.esm.js?8c4f:2314 TypeError: Cannot read property 'locale' of undefined
我终端我看到了这个:
WARNING Compiled with 2 warnings 16:59:12
warning in ./src/plugins/Translation.js
"export 'i18n' was not found in '../i18n'
warning in ./src/main.js
"export 'i18n' was not found in './i18n'
我不明白出了什么问题。我看了这个教程: https ://www.youtube.com/watch?v=rRhBNfn8dEs&t=17s
谢谢!!
解决方案
推荐阅读
- sql - 使用配对 id 表左连接行
- c# - 有没有办法在使用聚合()时将 AutoMapper 用于 mongo c# 投影表达式?
- azure - 如何撤消 kubectl 删除节点
- go - 即使两个文件名完全相同,文件未找到错误?
- reactjs - 如何在 React 应用程序刷新或通过 create-react-app 重新加载之前调用某些东西
- spring - 无法使用spring集成从文档中获取xml节点的数量
- javascript - 字符串内的换行符(React Native)
- java - 如何在 Mockito 测试中从 application.properties 加载属性
- python - python为什么要导入低版本的Numpy?
- javascript - 书签不自动填充