-
Notifications
You must be signed in to change notification settings - Fork 5
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
Taro3.6.24模板项目创建后运行测试报错 #38
Comments
有解决方案吗? |
目前没有很好的解决方案,只能回退Taro版本到3.6.22或者不使用这个库。 |
我目前定位到问题是出在 Taro的 #15094 pr 导致的报错。 这个合并里修改了
@heiazu 麻烦大佬看看如何修改 |
那只能暂时回退版本了 |
还没解决吗。。。 |
Amazing! 都 |
这个库都没见维护了 |
你有尝试修改源码解决吗,我 fork 下来加上了这几行代码,但还是报错 Current.page = {
path: '/pages/index/index'
}
document.body.innerHTML = `<div id="app"><div id="${Current.page.path}" class="taro_page" /></div>`
// @ts-ignore
// 下面这三行是修改后的代码
const history = createHashHistory({ window })
handleAppMountWithTabbar(config, history)
createRouter(history, appInst, config, 'React')
await waitRAF()
return {
app: appInst,
page: Current.page
} |
same issue |
You guys don't need unit test for projects? Are you kidding me? |
问题描述:
taro 3.6.24版本的模板项目运行测试会报找不到
history
的错误。错误信息:
复现步骤:
@tarojs/cli
创建模板项目 (react+pnpm+ts+less+github+默认模板)pnpm test
The text was updated successfully, but these errors were encountered: