Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using 'expo-community-flipper' plugin doesn't work #44

Closed
firasrg opened this issue Nov 22, 2022 · 3 comments
Closed

Using 'expo-community-flipper' plugin doesn't work #44

firasrg opened this issue Nov 22, 2022 · 3 comments
Assignees
Labels
has workaround Has a workaround, please read through thread nofix Issue does not have a fix planned SDK 44 Affects plugin in Expo SDK 44 SDK 45 Affects plugin in Expo SDK 45 SDK 46 Affects plugin in Expo SDK 46

Comments

@firasrg
Copy link

firasrg commented Nov 22, 2022

Hello!

I'm using Expo Manager SDK 45, and actually trying to debug my app with development build and Flipper.

I've closely followed the guide on Expo docs website. Now, when I run the app, I get the following error :

Cannot find module 'expo/config-plugins'
Require stack:
- D:\webstorm-workspace\mobile-app\node_modules\expo-community-flipper\build\withFlipper.ios.js
- D:\webstorm-workspace\mobile-app\node_modules\expo-community-flipper\build\withFlipper.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\utils\plugin-resolver.js   
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\plugins\withStaticPlugin.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\plugins\withPlugins.js     
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\index.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\plugins\withConfigPlugins.js       
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\Config.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\index.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\metro-config\build\ExpoMetroConfig.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\build\exp.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js
Error: Cannot find module 'expo/config-plugins'
Require stack:
- D:\webstorm-workspace\mobile-app\node_modules\expo-community-flipper\build\withFlipper.ios.js
- D:\webstorm-workspace\mobile-app\node_modules\expo-community-flipper\build\withFlipper.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\utils\plugin-resolver.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\plugins\withStaticPlugin.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\plugins\withPlugins.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config-plugins\build\index.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\plugins\withConfigPlugins.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\Config.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\config\build\index.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\metro-config\build\ExpoMetroConfig.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\build\exp.js
- C:\Users\dde\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
    at Function.Module._load (node:internal/modules/cjs/loader:804:27)
    at Module.require (node:internal/modules/cjs/loader:1028:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (D:\webstorm-workspace\mobile-app\node_modules\expo-community-flipper\build\withFlipper.ios.js:24:26)
    at Module._compile (node:internal/modules/cjs/loader:1126:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    at Module.load (node:internal/modules/cjs/loader:1004:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1028:19)

I follow the error which is in a file called:

..\node_modules\expo-community-flipper\build\withFlipper.ios.js:24:26

and saw this :

const config_plugins_1 = require("expo/config-plugins");

I think the require() here is wrong, it should be

const config_plugins_1 = require("@expo/config-plugins");

There is another on in ..\node_modules\expo-community-flipper\build\withFlipper.android.js.

Thanks in advance

@maxenceg
Copy link

Hello!

You should force the version ^46.0.2 in your package.json for it to work!

If you do npx expo install expo-community-flipper, it will just install version 47.0.0 which is compatible with Expo SDK 47 but not with 45 or 46 😊

@jakobo jakobo self-assigned this Nov 29, 2022
@jakobo jakobo added nofix Issue does not have a fix planned SDK 44 Affects plugin in Expo SDK 44 SDK 45 Affects plugin in Expo SDK 45 SDK 46 Affects plugin in Expo SDK 46 has workaround Has a workaround, please read through thread labels Nov 29, 2022
@jakobo
Copy link
Owner

jakobo commented Nov 29, 2022

Just updating the tags on the issue for others who might run into this. Thanks @maxenceg!

@all-contributors please add @maxenceg for question

@allcontributors
Copy link
Contributor

@jakobo

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @maxenceg! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround Has a workaround, please read through thread nofix Issue does not have a fix planned SDK 44 Affects plugin in Expo SDK 44 SDK 45 Affects plugin in Expo SDK 45 SDK 46 Affects plugin in Expo SDK 46
Projects
None yet
Development

No branches or pull requests

3 participants