Next.js Discord

Discord Forum

erver relative imports are not implemented yet. Please try an import relative to the file you are in

Unanswered
satvik posted this in #help-forum
Open in Discord
What's the status for this? My monorepo doesn't use a repo manager like nx or turborepo, so I'm thinking the only option is to resolve it thru server paths. Lemme know what's the status of this ticket

9 Replies

I have that already, still doesn't work
@satvik I have that already, still doesn't work
i'll need a reproduction repository then to know what exactly is the problem you are facing
sure sure, will send one out soon!
https://github.com/satvik-1203/turbopack-path-issues

go into next-app.


npm run dev for running it without turbo (port 3000)
npm run dev:turbo for running it with turbo (port 3001)

works without turbopack but fails when using it. I have my path alias in tsconfig
Hope that helps debug something!
@satvik https://github.com/satvik-1203/turbopack-path-issues go into next-app. `npm run dev` for running it without turbo (port 3000) `npm run dev:turbo` for running it with turbo (port 3001) works without turbopack but fails when using it. I have my path alias in tsconfig
uh no... this is not how a monorepo should be implemented. at least you need to use npm workspaces since you are using npm.

if you want to use a dependency, you need to declare that dependency in package.json.
Yessir ik, we wer too late and the codebase is kinda mature now. We really need turbopack working 😂
It’s alr tho, I made buncha config changes to make turborepo work without alot of changes or conflicts