Module `@components/Hello` does not exi st in the Haste module map
See original GitHub issuemy tsconfig.json
...
"paths": {
"@components/*":["src/components/*"]
},
...
and my app.tsx
import Hello from '@components/Hello'
and tsc check is no errors but bundling failed
error: bundling failed: Error: Unable to resolve module `@components/Hello` f
rom `F:\RN\TS\UserTrain\src\App.tsx`: Module `@components/Hello` does not exi
st in the Haste module map
why?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Module path does not exist in the Haste module map #39
My issue was related to using a transformer in the app.json (typescript). This transformer was altering the source before the plugin had a ......
Read more >reactjs - Unable to resolve module...does not exist in the haste ...
But since I started the new project, after adding custom modules in the project I have this error message. In this case I...
Read more >Module doesn't exist in the Haste module map. : r/reactnative
Hi everyone, I'm having some problems with my application (see image below). I've made sure that my package is installed, followed the steps ......
Read more >react native unable to resolve module - You.com
So the root cause is, the file it lists in the error message is importing the native Node module path , which isn't...
Read more >Troubleshooting common React Native bugs - LogRocket Blog
The prompt does not identify the component or even the line on which the error ... If you are sure the module exists,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Add the
package.json
file to thecomponents
(target) directory with following content:(I’m not sure about
@
in the package name)