-
Notifications
You must be signed in to change notification settings - Fork 13
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
"Module not found" errors on next.js #24
Comments
thanks for the flag! indeed I was able to repro when using typeschema on next.js. downgrading didn't work either, so I'll need to look into how next.js handles dynamic imports and optional peer dependencies. likely, we'll need a fix similar to how I've done on Vite a couple weeks ago: vitejs/vite#14489. I'll prioritize unblocking this |
found the root cause! it was due to webpack, the bundle used by Next.js. we're now using the fix is out on |
Great work! Thanks @decs ^_^ |
I had to downgrade to
0.11.0
because the library was asking me to install all the peer dependencies.Tried with pnpm and npm. Same error.
It seems there is an error where the
_valibot
variant is calling for the other deps.The text was updated successfully, but these errors were encountered: