Giter Club home page Giter Club logo

Comments (4)

geersch avatar geersch commented on May 30, 2024 1

Hrm, I see.

unplugin-swc does have a dependency on unplugin.

{
  "dependencies": {
    "unplugin": "^0.6.0"
  },
}

Which resolves to version 0.6.3 as that's the latest 0.6.x release. And that specific version has a peer dependency on vite.

{
  "peerDependencies": {
    ...
    " vite": "^2.3.0"
  }
}

Which indeed resolves to 2.9.16. Using yarn 1.22.19, which did not warn me about the missing peer deps, since vite is marked as an optional peer dependency in unplugin.

https://github.com/unjs/unplugin/blob/29fe515d424101970e14c3296eb99a2d553055f7/package.json#L76

You should be able to remove that particular vite version from your package-lock.json / yarn.lock and make sure version 4.x.x is used instead.

from unplugin-swc.

geersch avatar geersch commented on May 30, 2024

What issue are you experiencing with Vite 4?

I described how to use Vitest + this plugin for a NestJS app here:

https://github.com/geersch/nestjs-getting-started/blob/main/docs/12-vitest.md

Bumped into a few issues (see caveats / known issues), but nothing related to Vite 4.

from unplugin-swc.

railsstudent avatar railsstudent commented on May 30, 2024

@geersch

image
For me, unplugin-swc is using [email protected]

from unplugin-swc.

hannoeru avatar hannoeru commented on May 30, 2024

This should fixed in v1.4.0, give it a try!

from unplugin-swc.

Related Issues (14)

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.