Git Product home page Git Product logo

Comments (16)

kdy1 avatar kdy1 commented on August 16, 2024 34

The latest tag is now 1.5.7

from swc.

xqin avatar xqin commented on August 16, 2024 20

PLEASE UNPUBLISH @swc/[email protected] FIRST!!!

from swc.

cckn avatar cckn commented on August 16, 2024 9

To resolve this, fix the version of "@swc/core": "1.5.7". No caret(^)

"dependencies": {
  "@swc/core": "1.5.7"
}

If @swc/core is not installed, install version 1.5.7:

npm install @swc/[email protected]
# or
yarn add @swc/[email protected]
# or 
pnpm install @swc/[email protected]

from swc.

kdy1 avatar kdy1 commented on August 16, 2024 4

76b4de1 would fix it, but I'll close this issue after verifying that it works.

from swc.

kdy1 avatar kdy1 commented on August 16, 2024 4

image

I'm trying my best. And normally, you don't need overriding because the latest tag of npm is 1.5.7

from swc.

valentinpalkovic avatar valentinpalkovic commented on August 16, 2024 4

@kdy1 Overriding is still necessary if @swc/core's version is defined as a version range (e.g. ^1.5.7). Then, it doesn't matter which version is tagged with latest. The package manager yarn (v4) will install the latest available stable version that is published (as of now 1.5.20 - which is borked as well). This is an issue at Storybook because @swc/core is a transitive dependency, and we have to publish new versions of our packages so that our users will not run into issues.

// from the `yarn.lock`
"@swc/core@npm:^1.5.7":
  version: 1.5.20
  resolution: "@swc/core@npm:1.5.20"
  ...

from swc.

kdy1 avatar kdy1 commented on August 16, 2024 4

Finally it's fixed.

from swc.

hakimassouane2 avatar hakimassouane2 commented on August 16, 2024 3

I'm guessing that is the cause for pnpm/pnpm#6603 (comment) ?

ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@swc/types@workspace:^" is in the dependencies but no package named "@swc/types" is present in the workspace

Most likely, I'm having the same issue

from swc.

cope avatar cope commented on August 16, 2024

I'm guessing that is the cause for pnpm/pnpm#6603 (comment) ?

ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@swc/types@workspace:^" is in the dependencies but no package named "@swc/types" is present in the workspace

from swc.

lifeiscontent avatar lifeiscontent commented on August 16, 2024

looks like the way publishing worked in swc changed maybe some hooks are no longer running as expected? v1.5.11...main

from swc.

Aarebecca avatar Aarebecca commented on August 16, 2024

Ran into the same problem, did you use npm directly when publishing

from swc.

kdy1 avatar kdy1 commented on August 16, 2024

@Aarebecca Yeap, exactly. I changed it to use yarn npm publish and triggered a new release

from swc.

lifeiscontent avatar lifeiscontent commented on August 16, 2024

@kdy1 any thoughts on using pnpm I've found using it for monorepo management to be a lot easier especially around publishing

from swc.

leezCtt avatar leezCtt commented on August 16, 2024

screenshot-20240528-155901

from swc.

maoxiaoke avatar maoxiaoke commented on August 16, 2024

Same here

image

from swc.

heozeop avatar heozeop commented on August 16, 2024

Will this issue be resolved soon ? Or I'll just do update using "resolutions": {"@swc/core":"1.5.7"}

from swc.

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.