Comments (10)
Try to reproduce it without Superforms, as it seems related to zod-to-json-schema.
from sveltekit-superforms.
@ciscoheat yeah, I definitely think it's related only to zod-to-json-schema
and I think most of users (me included) use it only in superforms
and not directly.
That's why I thought of a maybe possible solution of its imports update in superforms
(directly to files of it for example) to overcome the Circular dependency
warning.
from sveltekit-superforms.
I'm also wondering why I even have this warning, I don't use zod
with superforms
or anywhere in the app 🤔
from sveltekit-superforms.
@ciscoheat I've checked and when superforms
package is added with:
yarn add sveltekit-superforms
seems like all optional packages are installed:
success Saved lockfile.
success Saved 29 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ @gcornut/[email protected]
├─ @hapi/[email protected]
├─ @poppinss/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @sinclair/[email protected]
├─ @sodaru/[email protected]
├─ @types/[email protected]
├─ @vinejs/[email protected]
├─ @vinejs/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
from sveltekit-superforms.
All packages are installed, but only the ones used will be bundled. What happens if you uninstall zod-to-json-schema?
from sveltekit-superforms.
Gives an error since I don't use the package directly
from sveltekit-superforms.
I don't get the warning when building, so if you have a repo that reproduces it, I'll take a look.
from sveltekit-superforms.
@ciscoheat sure, I've added a reproduction with screenshot: https://github.com/vladshcherbin/svelte-superforms
from sveltekit-superforms.
As mentioned in the other issue, it doesn't happen when using pnpm. Haven't used yarn (more than when absolutely necessary), so maybe it can be configured to handle it.
from sveltekit-superforms.
This warnings are coming from rollup, I've seen them before in other projects - issue rollup/rollup#1089 and many other issues/questions in google. They can be configured there (even mentioned in rollup docs) but rare libraries throw them.
Surprising pnpm doesn't have them (or somehow suppress), the bundler is the same 🙈
from sveltekit-superforms.
Related Issues (20)
- Reverse In and Out type parameter in superForm return type HOT 1
- FormPathLeaves<FormObj, Date> = never HOT 2
- When I build, I am getting a Circular Dependency warning. HOT 4
- using pick on a valibot schema causes superforms to fail to submit when use:enhance is on. HOT 3
- Allow using superForms without a schema HOT 5
- Zod superRefine not updating $errors HOT 5
- zod() Incompatible with z.ZodType HOT 3
- Version 2.6.2 breaks my SvelteKit app, causing infinite loading on localhost HOT 3
- Custom callback for when submission is completed HOT 5
- Form gets cleared after submit. HOT 3
- Error: Unsupported valibot schema: enum HOT 2
- Support for schema references ($ref) HOT 4
- Target attribute not supported on <form> with use:enhance HOT 2
- Superdebug collapsed too much when without label HOT 7
- SuperForms doesn't quite support input names including `.` (setError(), splitPath()) HOT 1
- Support for "raw" JSON schema HOT 14
- isTainted does not allow to validate the entire form HOT 4
- Support for Valibot schema: instance HOT 3
- Support for Valibot schema: special HOT 3
- Manage client validation on multiple forms across stepper HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sveltekit-superforms.