小编Ann*_*ova的帖子

升级到 Emotion v11 后 Stylis 编译器错误

我只是按照指南升级到 Emotion v11 - 添加了 eslint 规则,使用后--fix一切似乎都很好。

根据重命名升级了软件包,但是当我去构建我的开发版本时,我得到了这个堆栈跟踪,但我的应用程序没有呈现:

Compiled with warnings.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'COMMENT' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'alloc' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'compile' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'dealloc' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'delimit' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'from' is not exported from 'stylis'.

./node_modules/@emotion/react/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
Attempted import error: 'identifier' is not …
Run Code Online (Sandbox Code Playgroud)

emotion reactjs babeljs

6
推荐指数
1
解决办法
3505
查看次数

标签 统计

babeljs ×1

emotion ×1

reactjs ×1