Giter Club home page Giter Club logo

Comments (10)

ciscoheat avatar ciscoheat commented on June 6, 2024

Try to reproduce it without Superforms, as it seems related to zod-to-json-schema.

from sveltekit-superforms.

vladshcherbin avatar vladshcherbin commented on June 6, 2024

@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.

vladshcherbin avatar vladshcherbin commented on June 6, 2024

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.

vladshcherbin avatar vladshcherbin commented on June 6, 2024

@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.

ciscoheat avatar ciscoheat commented on June 6, 2024

All packages are installed, but only the ones used will be bundled. What happens if you uninstall zod-to-json-schema?

from sveltekit-superforms.

vladshcherbin avatar vladshcherbin commented on June 6, 2024
image

Gives an error since I don't use the package directly

from sveltekit-superforms.

ciscoheat avatar ciscoheat commented on June 6, 2024

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.

vladshcherbin avatar vladshcherbin commented on June 6, 2024

@ciscoheat sure, I've added a reproduction with screenshot: https://github.com/vladshcherbin/svelte-superforms

from sveltekit-superforms.

ciscoheat avatar ciscoheat commented on June 6, 2024

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.

vladshcherbin avatar vladshcherbin commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.