Comments (8)
Can confirm it works now with the new version.
from swc.
Should be fixed by 2fb890c
from swc.
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.
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.
I can also reproduce this exact error on windows. What shall we do to go past this error?
from swc.
from swc.
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.
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)
- Update test262 parser test suite
- `strictMode` configuration does not work HOT 1
- swc_ecma_minifier support charset option HOT 2
- can't add comments in right place after changing AST structure because can't get the right Bytepos HOT 5
- @swc/wasm-typescript exits on Windows arm64 when fed with certain syntax HOT 12
- Panic from symbol rename failure HOT 5
- Could not resolve "./node_modules/@swc/helpers/_/_call_super" (originally "@swc/helpers/_/_call_super") HOT 2
- Uninitialized class inited unexpected HOT 1
- The single statement containing the TS Enum is not being transformed
- swc/core panic using parse() and transform() APIs HOT 3
- Can I get or set global variables in Node.js when I am using SWC?
- Seems this project it totally broken HOT 1
- Number compression with minification creates invalid code HOT 3
- SWC minify mangle cause function parameter name collision with function name
- @swc/core modified the declaration order of protected and private, resulting in syntax errors HOT 1
- Core-js forEach import polyfill not working, Babel with the same config works fine
- Paths are not transformed in dts files HOT 2
- `resolveFully` don't use `--out-file-extension` value
- `swc.transform` with `experimental.emitIsolatedDts` does not include comments in the output with `preserveAllComments: true` HOT 2
- SWC `transform` with `baseUrl` mangles imports of hidden directories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swc.