最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论