Files
kazoottt-blog/src/content/post/编程/web3/expo报错.md
2024-11-28 16:28:10 +00:00

1.0 KiB
Raw Blame History

title, slug, published, description, rinId, finished, date, category, tags
title slug published description rinId finished date category tags
expo报错 expo-error true 在expo开发中遇到报错TypeError: The 'compilation' argument must be an instance of Compilation。错误的原因是项目中存在多个webpack版本特别是由于额外添加了依赖"metro-core": "^0.80.1"。解决此问题的方法是删除node_modules目录移除该依赖然后重新安装依赖。 10 true 2024-02-07T00:00:00.000Z 编程-web3
expo 错误angular cliwebpacknpm metro-core

Expo 报错

angular cli - The 'compilation' argument must be an instance of Compilation - Stack Overflow

expo TypeError: The 'compilation' argument must be an instance of Compilation

npm ls webpack

原因是有多个 webpack而具体的原因是我另外加了一个 dep
"metro-core": "^0.80.1",

解决方法:删除 node_modules以及把上面这个依赖移除再安装一次。