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

[Bug] umi配置中开启keepalive后,在开启mako模式后不兼容 #12722

Closed
phoema opened this issue Sep 26, 2024 · 2 comments
Closed

[Bug] umi配置中开启keepalive后,在开启mako模式后不兼容 #12722

phoema opened this issue Sep 26, 2024 · 2 comments

Comments

@phoema
Copy link

phoema commented Sep 26, 2024

config.ts中:
/**

  • @name 多tab缓存页
  • @description 正则匹配需要缓存的页面,至少两个/abc/
  • @doc
    /
    keepalive: [/^(?:[^\/]
    /){2}[^\/]*/],
    /**
  • @name 多tab缓存页
  • @description hasCustomTabs:手动处理tab
  • @doc
    */
    tabsLayout: { hasCustomTabs: true },
    mfsu: false,
    mako: {},

页面启动后浏览器报错:
image

node_modules.pnpm\[email protected][email protected]\node_modules\react-dom\cjs\react-dom.production.min.js:188 TypeError: Cannot read properties of null (reading 'applyPlugins')

config中注释掉keepalive、tabsLayout,页面能正常打开。

Context

  • Umi Version: 4.3.24
  • Node Version: 20
  • Platform: windows
@stormslowly
Copy link
Member

可以帮忙给给最小复现吗?这样我们更方便查问题

@xiaohuoni
Copy link
Member

关注这里就好,实验性功能 alitajs/alita#671

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

3 participants