Skip to content

can't deploy the starter because it doesn't build #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
raphaelbadia opened this issue Feb 17, 2024 · 0 comments
Open

can't deploy the starter because it doesn't build #1

raphaelbadia opened this issue Feb 17, 2024 · 0 comments

Comments

@raphaelbadia
Copy link

Hello, I don't really know where to put this issue, but I've installed a nextjs project with Next.js with App Router (BETA)

npx create-reactbricks-app@latest
Create ReactBricks App v1.2.9

? Do you already have a React Bricks account? (Y/n) Y
? Please, enter your React Bricks account e-mail: **************
? Password: *******************
? Choose your app or create a new one: *****
? Project name (insert a valid package name): *****
? Folder name: brickstesr
? What would you like to create today? Website and Blog with Tailwind (recommended to start)
? Select framework: Next.js with App Router (BETA)
✔ Downloading starter
✔ Setting project configurations
✔ Saving app credentials
✔ Installing dependencies
✔ Setting up git repository

Project "karolbeffa" created!

You can start your project by typing:

  cd karolbricks
  yarn dev

When I try to build the project without touching anything, it crashes :

yarn build
yarn run v1.22.21
$ next build
   ▲ Next.js 14.0.4
   - Environments: .env.local

 ✓ Creating an optimized production build
 ✓ Compiled successfully

./components/PostListItem.tsx
47:11  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
   Linting and checking validity of types  .Failed to compile.

./react-bricks/bricks/react-bricks-ui/contacts/FormBuilder/FormBuilderProvider.tsx:14:51
Type error: Type 'undefined' does not satisfy the constraint 'FieldValues'.

  12 | interface IFormBuilderProvider {
  13 |   register?: UseFormRegister<FieldValues>
> 14 |   handleSubmit?: UseFormHandleSubmit<FieldValues, undefined>
     |                                                   ^
  15 |   errors?: FieldErrorsImpl<{
  16 |     [x: string]: any
  17 |   }>
error Command failed with exit code 1.

Could you take a look please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant