我从youtube上的一个手表项目开始,我自己也在代码沙盒中进行编码。链接到沙箱-https://codesandbox.io/s/shy-grass-wswrtd?file=/src/App.jsx
这就是我得到错误的地方:Could not find module in path: '@emotion/weak-memoize' relative to '/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js'
我的package.json文件是:软件包.json
即使我的依赖项中有弱内存模块,为什么我仍然会收到这个错误?
将弱内存版本更改为0.7.5。
这是一个CodeSandBox错误,恢复到以前版本的模块修复了问题。
https://github.com/codesandbox/codesandbox-client/issues/6473