Skip to content
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

Demo 运行起来不正确 #71

Open
listenecho opened this issue Oct 19, 2021 · 5 comments
Open

Demo 运行起来不正确 #71

listenecho opened this issue Oct 19, 2021 · 5 comments

Comments

@listenecho
Copy link

大佬,这个demo,运行起来,点击按钮没法正常切换应用。但是单独访问子应用是ok的。

@yisar
Copy link
Collaborator

yisar commented Oct 19, 2021

提示啥,我很久没有跑过了,可以用 pnpm 重构一波

@listenecho
Copy link
Author

VM128:631 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'userAgent')
    at Object.eval (eval at e (main.js:15), <anonymous>:631:40)
    at Object.eval (eval at e (main.js:15), <anonymous>:8101:30)
    at __webpack_require__ (eval at e (main.js:15), <anonymous>:35:30)
    at Module.eval (eval at e (main.js:15), <anonymous>:8640:23)
    at __webpack_require__ (eval at e (main.js:15), <anonymous>:35:30)
    at eval (eval at e (main.js:15), <anonymous>:99:18)
    at eval (eval at e (main.js:15), <anonymous>:102:10)
    at webpackUniversalModuleDefinition (eval at e (main.js:15), <anonymous>:14:23)
    at eval (eval at e (main.js:15), <anonymous>:15:3)
    at eval (eval at e (main.js:15), <anonymous>:11781:17)
eval @ VM128:631
eval @ VM128:8101
__webpack_require__ @ VM128:35
eval @ VM128:8640
__webpack_require__ @ VM128:35
eval @ VM128:99
eval @ VM128:102
webpackUniversalModuleDefinition @ VM128:14
eval @ VM128:15
eval @ VM128:11781
e @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
s @ main.js:15
Promise.then(异步)
c @ main.js:15
s @ main.js:15
Promise.then(异步)
c @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
pe @ main.js:15
(匿名) @ main.js:15
s @ main.js:15
Promise.then(异步)
c @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
(匿名) @ main.js:15
Promise.then(异步)
(匿名) @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
(匿名) @ main.js:15
z @ main.js:15
(匿名) @ main.js:15
me @ main.js:15
(匿名) @ main.js:15
j @ main.js:1
n @ main.js:1
(匿名) @ main.js:1
j @ main.js:1
(匿名) @ main.js:1
(匿名) @ main.js:1
(匿名) @ main.js:1
(匿名) @ main.js:1
main.js:15 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'bootstrap')
    at main.js:15
    at Generator.next (<anonymous>)
    at s (main.js:15)

@listenecho
Copy link
Author

能运行起来,切换应用控制台也能打印出来 mount 与 unmout 但是应用没有加载出来

@yisar
Copy link
Collaborator

yisar commented Oct 19, 2021

看看好像是某个对象是 null,你试着调试看看呗

@listenecho
Copy link
Author

OK,我先试试,感谢大佬,百忙之中回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants