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

Getting odd warning? svelte is the type in package.json? #26

Closed
rchrdnsh opened this issue Nov 7, 2022 · 2 comments
Closed

Getting odd warning? svelte is the type in package.json? #26

rchrdnsh opened this issue Nov 7, 2022 · 2 comments

Comments

@rchrdnsh
Copy link

rchrdnsh commented Nov 7, 2022

Got this in the terminal while using svelte-motion:

▲ [WARNING] "svelte" is not a valid value for the "type" field [package.json]

    node_modules/svelte-motion/package.json:34:10:
      34 │   "type": "svelte",
         ╵           ~~~~~~~~

  The "type" field must be set to either "commonjs" or "module".

...I looked at the package.json and it indeed says svelte for the type...is that what is supposed to be done?

@micha-lmxt
Copy link
Owner

Yes, that is a relict from the early days of Sveltekit. I changed it in the newest version today.

@rchrdnsh
Copy link
Author

ok, great.

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

2 participants