Expo SDKをアップグレードしたらエラーにハマった。
- 2022/06/10
- 20:40
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin?
こういうよくわかんないエラーで時間失うの辛い。。。
SDK42からSDK45にアップグレードしたら、作成中のアプリがエラーを起こした。
色々調べて、この記事の内容で解決できた。
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? #1875
ーーー引用
Hi, based on comments from this issue it seems like there are multiple solutions for it. You can try the following:
Make sure you have added Reanimated's Babel plugin to babel.config.js:
plugins: [
...
'react-native-reanimated/plugin',
],
Note that it must be the last on the list.
Reset cache: (yarn start --reset-cache or expo r -c if you're using expo)
Check if you have more than one babel configuration file (babel.config.js, .babelrc)
ーーー引用終わり
二つエラーがあったけど、こっちのエラーを消したらもう一個も消えた。
よかった。
こういうよくわかんないエラーで時間失うの辛い。。。
SDK42からSDK45にアップグレードしたら、作成中のアプリがエラーを起こした。
色々調べて、この記事の内容で解決できた。
Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin? #1875
ーーー引用
Hi, based on comments from this issue it seems like there are multiple solutions for it. You can try the following:
Make sure you have added Reanimated's Babel plugin to babel.config.js:
plugins: [
...
'react-native-reanimated/plugin',
],
Note that it must be the last on the list.
Reset cache: (yarn start --reset-cache or expo r -c if you're using expo)
Check if you have more than one babel configuration file (babel.config.js, .babelrc)
ーーー引用終わり
二つエラーがあったけど、こっちのエラーを消したらもう一個も消えた。
よかった。
スポンサーサイト
- テーマ:ソフトウェア開発
- ジャンル:コンピュータ
- カテゴリ:WEBデザイン
- CM:0
- TB:0