Closed fantasy525 closed 5 years ago
I'm facing the same issue.
tsconfig.json
"baseUrl": "./src",
"paths": {
"@/*": ["/*"],
"@components": ["components"],
"@components/*": ["components/*"],
SomeComponent.tsx
import { StyledText, StyledButton } from "@components";
error: bundling failed: Error: Unable to resolve module `@components` from `/Users/xxx/project-name/src/components/Partner/Partner.tsx`: Module `@components` does not exist in the Haste module map
Im also having this problem, did you find solution for this? @FabianMeul, @fantasy525?
Same issue, any updates?
Add the package.json
file to the components
(target) directory with following content:
{
"name": "@components",
"private": true
}
(I'm not sure about @
in the package name)
@fantasy525 @FabianMeul @tkulpa By follow @stepankoci reply, Issue resolved.
@fantasy525 @FabianMeul @tkulpa By follow @stepankoci reply, Issue resolved. nice ,it works for me
my tsconfig.json
and my app.tsx
and tsc check is no errors but bundling failed
why?