I am using VS code with Android studio and I am receiving an error that I don't know how to resolve.
Error Picture
I found out that My error is because I imported this into my app.
import headerTheme from '../../native-base-theme/components/Header';
How do I resolve this error?
This is what I am getting in my vscode terminal:
*info Reloading app...
[Wed Jan 06 2021 17:34:52.340] BUNDLE ./index.js
error: Error: Unable to resolve module ../../native-base-theme/components/Header
from ComponentslayoutCustomHeader.js
:
None of these files exist:
- native-base-themecomponentsHeader(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
- native-base-themecomponentsHeaderindex(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrc
ode-hasteDependencyGraphModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrc
ode-hasteDependencyGraphResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrc
ode-hasteDependencyGraph.js:287:16)
at Object.resolve (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrclibransformHelpers.js:267:42)
at C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrcDeltaBundlerraverseDependencies.js:434:31
at Array.map ()
at resolveDependencies (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrcDeltaBundlerraverseDependencies.js:431:18)
at C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrcDeltaBundlerraverseDependencies.js:275:33
at Generator.next ()
at asyncGeneratorStep (C:UsersshixiOneDriveDesktopVS_code_filesNYUnitysrcmobileNYUnity
ode_modulesmetrosrcDeltaBundlerraverseDependencies.js:87:24)*
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…