Git Product home page Git Product logo

Comments (8)

LukasGerm avatar LukasGerm commented on September 18, 2024 1

Can confirm it works now with the new version.

from swc.

kdy1 avatar kdy1 commented on September 18, 2024

Should be fixed by 2fb890c

from swc.

OskarLebuda avatar OskarLebuda commented on September 18, 2024

Should be fixed by 2fb890c

@kdy1
What you mean "should". I'm new in the "rust world". This requires some kind of release or something?
Still cannot install cli - same error

from swc.

OskarLebuda avatar OskarLebuda commented on September 18, 2024

After cleaning some caches got another error

35.46 error[E0599]: no method named `is_reserved_in_any` found for struct `swc_ecma_ast::Ident` in the current scope
35.46    --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_compat_es2022-0.5.2/src/class_properties/private_field.rs:592:21
35.46     |
35.46 592 |             if n.id.is_reserved_in_any() {
35.46     |                     ^^^^^^^^^^^^^^^^^^
35.46     |
35.46 help: there is a method `is_reserved` with a similar name
35.46     |
35.46 592 |             if n.id.is_reserved() {
35.46     |                     ~~~~~~~~~~~
35.46 
35.71 error[E0599]: no method named `is_reserved_in_any` found for struct `swc_ecma_ast::Ident` in the current scope
35.71    --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_compat_es2022-0.5.2/src/class_properties/mod.rs:806:50
35.71     |
35.71 806 | ...                   if method.key.id.is_reserved_in_any() {
35.71     |                                        ^^^^^^^^^^^^^^^^^^
35.71     |
35.71 help: there is a method `is_reserved` with a similar name
35.71     |
35.71 806 |                                 if method.key.id.is_reserved() {
35.71     |                                                  ~~~~~~~~~~~
35.71 
35.72    Compiling swc_ecma_transforms_optimization v0.199.2
35.86 For more information about this error, try `rustc --explain E0599`.
35.86 error: could not compile `swc_ecma_compat_es2022` (lib) due to 2 previous errors
35.87 warning: build failed, waiting for other jobs to finish...
59.85 error: failed to compile `swc_cli v0.91.269`, intermediate artifacts can be found at `/tmp/cargo-installEbFi2I`.
59.85 To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

from swc.

LukasGerm avatar LukasGerm commented on September 18, 2024

I can also reproduce this exact error on windows. What shall we do to go past this error?

from swc.

kdy1 avatar kdy1 commented on September 18, 2024

Fixed
image

from swc.

LukasGerm avatar LukasGerm commented on September 18, 2024

Do we need to use a newer version of swc_cli then? Or how does it work now? Because I can still reproduce? @kdy1

from swc.

swc-bot avatar swc-bot commented on September 18, 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.

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.