Error while setting twenty locally

After running npx nx start There are a lot of modules which cannot be find and further a lot of errors in some .tsx files such as Pill.tsx example-> src/theme/utils/getNextThemeColor.ts(1,28): error TS2305: Module '"@ui/theme"' has no exported member 'ThemeColor'. src/theme/utils/getNextThemeColor.ts(5,6): error TS7006: Parameter 'color' implicitly has an 'any' type.
src/display/index.ts(22,30): error TS1125: Hexadecimal digit expected. src/utilities/index.ts(1,25): error TS1125: Hexadecimal digit expected. src/utilities/index.ts(4,25): error TS1125: Hexadecimal digit expected.
nx run twenty-server:start
src/utilities/index.ts(1,25): error and then erors like this vite v5.4.0 building for production... src/components/index.ts:1:15 - error TS2307: Cannot find module './PillPill' or its corresponding type declarations. 1 export * from './Pill\Pill'; ~~~ src/components/Pill/Pill.tsx:11:38 - error TS2339: Property 'background' does not exist on type 'Theme'. 11 background: ${({ theme }) => theme.background.transparent.light}; ~~~~ src/components/Pill/Pill.tsx:
4 Replies
walnut
walnut4w ago
i faced a lot of errors too with this local setup, I think it's because some of dependencies are outdated, try the one-line script, that's the only method that works for me
saartrucck#318
could you tell me the exact command for it?
charles
charles4w ago
Is there still help needed here?
Want results from more Discord servers?
Add your server