Turborepo configure path aliases in packages folder #5500
Unanswered
aytacyaydem
asked this question in
Help
Replies: 1 comment
-
|
Based on your tsconfig.json, update your HomePageCard import statement: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to setup Turborepo with two namespaces one of them is packages and another is apps. I have two Nextjs project in apps and I have components, config files in packages workspace. I am trying to setup path aliases in packages workspace and I am facing an issue. Here my codes:
File: packages/ui/modules/programApplicationStatus.js
File: packages/ui/tsconfig.json:
File: apps/docs/pages/index.js
ERROR:
../../packages/ui/components/HomepageCard/index.js:2:0
Module not found: Can't resolve '@modules/programApplicationStatus'
1 | import { Badge, Card, Flex, Text, Link } from "@chakra-ui/react";
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./pages/index.js
How Can I fix it?
Beta Was this translation helpful? Give feedback.
All reactions