如何让不同组件使用两种不同版本的情绪/核心?这怎么可能?

问题描述

我有使用情感/核心v9的2.4.4版本的react-select和使用情感/核心v10的v1.1.1的@ papercups-io / chat-widget。

有没有一种方法可以同时使用这两种方法而不会出现序列化错误?

我得到的错误是

Uncaught TypeError: Cannot read property 'length' of undefined
    at serializeStyles (serialize.esm.js:146)
    at css (css.browser.esm.js:10)
    at keyframes (core.browser.esm.js:279)
    at eval (index.esm.js:411)
    at Module../node_modules/@theme-ui/components/dist/index.esm.js (main.js:5714)
    at __webpack_require__ (main.js:20)
    at eval (index.esm.js:25)
    at Module../node_modules/theme-ui/dist/index.esm.js (main.js:14730)
    at __webpack_require__ (main.js:20)
    at eval (index.modern.js:12)

另一种永久的方法当然是将react-select升级到使用我最终打算使用的情感/核心v10的v3,但就目前而言,我希望暂时承担一些技术债务以解决一些紧迫的需求。

请问我这是怎么可能的。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)