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

cannot install swc_cli #8560

Closed
zhuguoxi opened this issue Jan 25, 2024 · 2 comments
Closed

cannot install swc_cli #8560

zhuguoxi opened this issue Jan 25, 2024 · 2 comments
Labels
Milestone

Comments

@zhuguoxi
Copy link

Describe the bug

running cargo install swc_cli

--> /Users/xxxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_module-0.178.19/src/path.rs:233:16
|
233 | if let FileName::Real(resolved) = &target {
| ^^^^^^^^^^^^^^^^^^^^^^^^ ------- this expression has type &Resolution
| |
| expected Resolution, found FileName

error[E0308]: mismatched types
--> /Users/xxxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_module-0.178.19/src/path.rs:235:26
|
222 | let mut target = match target {
| _________________-
223 | | Ok(v) => v,
224 | | Err(err) => {
225 | | warn!("import rewriter: failed to resolve: {}", err);
226 | | return Ok(module_specifier.into());
227 | | }
228 | | };
| |
- expected due to this value
...
235 | target = FileName::Real(orig);
| ^^^^^^^^^^^^^^^^^^^^ expected Resolution, found FileName

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA8vMLcgvKlFQSFRIK8rPVVCvqKhQBwCmyJxEFAAAAA%3D%3D&config=H4sIAAAAAAAAA3WSsW7DIBCGdz%2BFxVgloe2QIVNfoGOnqsMZnxMqMNbdWW0U%2Bd0LTnCI0kzG%2F%2F18d%2FxwqupafbNRu%2FoUl%2FGnAcYPclFQGhqjW%2B1HZ51mMmo1W6JpADnwsucivjVg21H%2FWMZ1gyJI6866%2BEnOz8I5u%2BU4IOtsKKpfq3%2BgPjg0o8PHpMXxEEXYt0ixm35SuzvKRpf1x%2FPwAQjbhLifZJNS0oujhFzW0xkWAyRGKhJUfOwFflPs83kM2UGugQunUgeOcdFaNIFAwpyv0LhUqrKTAO1REhf59fllq7JO0HMXyJdDLMh3FGhBIJPr7CAEIzc3H6WOkA9JnFaFPPZifboxBaMED2JNjmS6GdGFwHh7POVtb7tjOZsJfoh9%2BC4HD%2F3eLfurzJ%2Fpyof2%2FGwuzzuFew5jq66m3GwBK8vveWcKoJr%2BAMuk2uIqAwAA

SWC Info output

No response

Expected behavior

swc_cli can be installed with stable Rust without issue

Actual behavior

swc_cli cannot be installed on stable Rust

Version

swc_cli v0.91.141

Additional context

No response

@zhuguoxi zhuguoxi added the C-bug label Jan 25, 2024
@kdy1 kdy1 added this to the Planned milestone Jan 25, 2024
@kdy1
Copy link
Member

kdy1 commented Jan 25, 2024

Fixed by 039c168

@kdy1 kdy1 closed this as completed Jan 25, 2024
@kdy1 kdy1 modified the milestones: Planned, v1.3.107 Jan 28, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Feb 28, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants