Module not found with saas-starter
Unanswered
Black Caiman posted this in #help-forum
Black CaimanOP
Hello, I'm am trying to get https://github.com/nextjs/saas-starter running, but running into the following error when opening the home page:
I've tried starting from scratch, reinstalling all packages, reinstalling just @radix-ui/react-dropdown-menu, downgrading, etc. All to no avail.
Any tips or tricks would be appreciated!
PS C:\Users\jmd50\Documents\Projects\Web\vercel-saas-template\saas-starter-2> pnpm dev
> @ dev C:\Users\jmd50\Documents\Projects\Web\vercel-saas-template\saas-starter-2
> next dev --turbopack
▲ Next.js 15.1.1-canary.5 (Turbopack)
- Local: http://localhost:3000
- Network: http://192.168.86.67:3000
- Environments: .env
- Experiments (use with caution):
· ppr
✓ Starting...
✓ Compiled in 177ms
✓ Ready in 1021ms
○ Compiling / ...
✓ Compiled / in 1972ms
⨯ ./components/ui/dropdown-menu.tsx:4:1
Module not found: Can't resolve '@radix-ui/react-dropdown-menu'
2 |
3 | import * as React from "react"
> 4 | import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 | import {
6 | CheckIcon,
7 | ChevronRightIcon,
https://nextjs.org/docs/messages/module-not-foundI've tried starting from scratch, reinstalling all packages, reinstalling just @radix-ui/react-dropdown-menu, downgrading, etc. All to no avail.
Any tips or tricks would be appreciated!
1 Reply
Black CaimanOP
Update: it appears running with "--turbopack" is the culprit. Without it, everything loads properly and no errors. Still looking...