Unable to resolve module ....UtilitiesPlatform in React Native Expo Project - Stack Overflow

None of these files exist: * node_modulesreact-nativeLibrariesUtilitiesPlatform(.web.ts|.ts|.web.

None of these files exist: * node_modules\react-native\Libraries\Utilities\Platform(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.cs

What I've Tried:

Cleared Cache:

Reinstalled node modules:

Checked for correct dependency versions using:

Verified the actual existence of the Platform module in the node_modules directory.

Additional Information:

I have recently removed deprecated packages like expo-permissions and fixed compatibility issues using npx expo install.

I am not sure if this could be a module resolution issue or a misconfiguration.

How can I resolve this error and get my project running again?

None of these files exist: * node_modules\react-native\Libraries\Utilities\Platform(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.cs

What I've Tried:

Cleared Cache:

Reinstalled node modules:

Checked for correct dependency versions using:

Verified the actual existence of the Platform module in the node_modules directory.

Additional Information:

I have recently removed deprecated packages like expo-permissions and fixed compatibility issues using npx expo install.

I am not sure if this could be a module resolution issue or a misconfiguration.

How can I resolve this error and get my project running again?

Share Improve this question asked Mar 20 at 18:30 Prithvi Singh ChauhanPrithvi Singh Chauhan 11 bronze badge 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Mar 23 at 19:16
Add a comment  | 

1 Answer 1

Reset to default 0

You need to take a development build using EAS. Run the following command to create a development build and try running your project again:

eas build --profile development --platform android

or

eas build --profile development --platform ios

After the build is complete, install the generated build on your device or emulator and run:

npx expo start --dev-client

This will ensure all dependencies are properly linked and avoid module resolution issues.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744390106a4571864.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信