You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the error:
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ..Failed to compile.
./src/components/dashboard/layout/mobile-nav.tsx:88:27
Type error: Type 'string | null' is not assignable to type 'string'.
Type 'null' is not assignable to type 'string'.
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ...
Failed to compile.
./src/components/core/logo.tsx
52:44 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
52:66 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
./src/components/dashboard/overview/sales.tsx
75:47 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
75:61 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
./src/contexts/user-context.tsx
47:27 Error: Prefer the safe : unknown for a catch callback variable. @typescript-eslint/use-unknown-in-catch-callback-variable
Activity
Abmstpha commentedon Jun 24, 2024
$ npm run build
▲ Next.js 14.1.3
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ...
Failed to compile.
./src/components/core/logo.tsx
52:44 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
52:66 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
./src/components/dashboard/overview/sales.tsx
75:47 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
75:61 Error: Invalid type "number" of template literal expression. @typescript-eslint/restrict-template-expressions
./src/contexts/user-context.tsx
47:27 Error: Prefer the safe
: unknownfor a catch callback variable. @typescript-eslint/use-unknown-in-catch-callback-variableinfo - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
acomanescu commentedon Jun 26, 2024
Hi @Abmstpha , I've pushed the fixed.
Regarding @bigbadbrad I'm not sure why you get that error because useNavigation always returns a pathname that's always a string.