V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zxCoder
V2EX  ›  问与答

angular11 报这个错

  •  
  •   zxCoder · 2021-04-03 10:15:44 +08:00 · 636 次点击
    这是一个创建于 1113 天前的主题,其中的信息可能已经有所发展或是发生改变。
    core.js:6162 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'contexts' of null
    TypeError: Cannot read property 'contexts' of null
        at ActivateRoutes.activateRoutes (router.js:2110)
        at router.js:2080
        at Array.forEach (<anonymous>)
        at ActivateRoutes.activateChildRoutes (router.js:2079)
        at ActivateRoutes.activate (router.js:2005)
        at MapSubscriber.project (router.js:1990)
        at MapSubscriber._next (map.js:29)
        at MapSubscriber.next (Subscriber.js:49)
        at TapSubscriber._next (tap.js:46)
        at TapSubscriber.next (Subscriber.js:49)
        at resolvePromise (zone-evergreen.js:1213)
        at resolvePromise (zone-evergreen.js:1167)
        at zone-evergreen.js:1279
        at ZoneDelegate.invokeTask (zone-evergreen.js:406)
        at Object.onInvokeTask (core.js:28497)
        at ZoneDelegate.invokeTask (zone-evergreen.js:405)
        at Zone.runTask (zone-evergreen.js:178)
        at drainMicroTaskQueue (zone-evergreen.js:582)
        at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:491)
        at invokeTask (zone-evergreen.js:1600)
    

    实在没头绪。。。项目在另一个系统(Linux)下跑的好好的,换到 Windows 的 WSL 之后,现在启动后 Edge 浏览器正常,Chrome 就无法正常显示页面,报这个错,谷歌也没查到相关的,不知道可能是什么问题

    wszgrcy
        1
    wszgrcy  
       2021-04-03 10:22:12 +08:00 via Android
    重装,清缓存,不用 cnpm ?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2907 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:38 · PVG 14:38 · LAX 23:38 · JFK 02:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.