React Native Android Files Do Not Exist

Expo CLI 4.8.1 environment info:
System:
OS: Windows 10 10.0.19043
Binaries:
Node: 14.17.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 7.20.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 4.2.0.0 AI-202.7660.26.42.7351085
npmPackages:
expo: ~42.0.1 => 42.0.1
react: 17.0.1 => 17.0.1
react-dom: 16.13.1 => 16.13.1
react-native: 0.64.2 => 0.64.2
react-native-web: ~0.13.12 => 0.13.18
Expo Workflow: bare
I’m trying to run a React Native App through Expo. It works fine on browser, but I get this error on Android

Unable to resolve module ./App.css from C:\Users\Gabe\Documents\React Native\MovieApp\App.js:

None of these files exist:
  * App.css(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * App.css\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  1 | import React, { useState, useEffect } from 'react';
  2 | //import '../node_modules/bootstrap/dist/css/bootstrap.css';
> 3 | import './App.css';

I’m only using one index.js file, so I’m not sure what dependency is broken that is causing this.

Hey @jacobjumper, you can’t use vanilla CSS outside of a web environment.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.