-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
router is not found! In unit test mode ,router is got from gloabl.router, otherwise VueRouter.useRouter(),test环境没问题,其他环境报这个 #11
Comments
反馈收到 |
但是env为test就没问题 |
你好 你使用的各个依赖包的版本是? |
建议参考一下例子: https://github.com/Zippowxk/stack-keep-alive-sample ,例子中使用webpack打包 ,目前已经正常托管在github上了 http://xinkai.wang/stack-keep-alive-sample/dist/ |
只加了一个环境变量,就报错了 |
??? |
此处导致此问题的原因是 debug文件不存在,已更新main分支,剔除了debug相关的代码 |
在main.js中使用以下代码 替换,可解决此问题 import { createApp } from 'vue/dist/vue.esm-bundler.js';
import StackKeepAlive from 'stack-keep-alive/dist/library.esm'; |
@SproutingChickenTeam 您可以试一下 |
No description provided.
The text was updated successfully, but these errors were encountered: