Skip to content
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

weird error with valibot #691

Open
statusunknown418 opened this issue Jun 12, 2024 · 5 comments
Open

weird error with valibot #691

statusunknown418 opened this issue Jun 12, 2024 · 5 comments

Comments

@statusunknown418
Copy link

statusunknown418 commented Jun 12, 2024

Describe the bug

> rm -rf ./.next && next build

  ▲ Next.js 14.2.4
  - Environments: .env

   Creating an optimized production build ...
Failed to compile.

./node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs
Attempted import error: 'getDotPath' is not exported from 'valibot' (imported as 'o').

Import trace for requested module:
./node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs
./src/components/invoices/InvoiceForm.tsx


> Build failed because of webpack errors
 ELIFECYCLE  Command failed with exit code 1.

getting that error when building next app, using [email protected], [email protected]

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Codesandbox link (Required)
Include a codesandbox will help us to investigate the issue quicker.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser Arc
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@adityavm
Copy link

+1 bumping for visibility

@dwalker93
Copy link

same issue
image

@SupawishPK
Copy link

when i start the project
image

@omridevk
Copy link

If you update to version 0.31.0 of valibot, the issue will be resolved.

@jorisre
Copy link
Member

jorisre commented Jul 2, 2024

@statusunknown418 Can you provide a Codesandbox reproducing the issue? Or confirm if updating to 0.31.0 resolves it for you?

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

No branches or pull requests

6 participants