Closed iwahbe closed 3 years ago
I got the same error.
Updating crates.io index Downloaded deno v1.6.3 Downloaded 1 crate (2.3 MB) in 0.56s Installing deno v1.6.3 Downloaded base64 v0.13.0 Downloaded either v1.6.1 Downloaded darling_macro v0.10.2 Downloaded fs2 v0.4.3 Downloaded crc v1.8.1 Downloaded http v0.2.2 Downloaded inotify-sys v0.1.4 Downloaded httpdate v0.3.2 Downloaded base64 v0.12.3 Downloaded dprint-core v0.34.0 Downloaded from_variant v0.1.2 Downloaded cargo_gn v0.0.15 Downloaded futures v0.3.8 Downloaded lazycell v1.3.0 Downloaded bumpalo v3.4.0 Downloaded bytes v0.5.6 Downloaded crossbeam-utils v0.7.2 Downloaded is-macro v0.1.8 Downloaded dlopen_derive v0.1.4 Downloaded inotify v0.8.3 Downloaded jsonc-parser v0.14.0 Downloaded memchr v2.3.4 Downloaded deno_fetch v0.18.0 Downloaded futures-sink v0.3.8 Downloaded alloc-stdlib v0.2.1 Downloaded darling v0.10.2 Downloaded async-trait v0.1.42 Downloaded input_buffer v0.3.1 Downloaded deno_runtime v0.5.0 Downloaded futures-core v0.3.8 Downloaded darling_core v0.10.2 Downloaded alloc-no-stdlib v2.0.1 Downloaded deno_core v0.75.0 Downloaded jsdoc v0.12.0 Downloaded mime_guess v2.0.3 Downloaded maybe-uninit v2.0.0 Downloaded fxhash v0.2.1 Downloaded ordered-float v1.1.1 Downloaded phf_macros v0.8.0 Downloaded quick-error v1.2.3 Downloaded phf_generator v0.8.0 Downloaded proc-macro-error-attr v1.0.4 Downloaded anymap v0.12.1 Downloaded fnv v1.0.7 Downloaded const-random-macro v0.1.13 Downloaded nix v0.19.1 Downloaded h2 v0.2.7 Downloaded owning_ref v0.4.1 Downloaded getrandom v0.2.1 Downloaded proc-macro2 v0.4.30 Downloaded dprint-swc-ecma-ast-view v0.3.1 Downloaded cpuid-bool v0.1.2 Downloaded radix_fmt v1.0.0 Downloaded encoding_rs v0.8.26 Downloaded if_chain v1.0.1 Downloaded derive_more v0.99.11 Downloaded crossbeam-channel v0.4.4 Downloaded idna v0.2.0 Downloaded deno_web v0.26.0 Downloaded brotli-decompressor v2.3.1 Downloaded mio-uds v0.6.8 Downloaded humantime v1.3.0 Downloaded quote v0.6.13 Downloaded cc v1.0.66 Downloaded ident_case v1.0.1 Downloaded base64 v0.11.0 Downloaded arrayvec v0.5.2 Downloaded retain_mut v0.1.1 Downloaded filetime v0.2.13 Downloaded iovec v0.1.4 Downloaded num-integer v0.1.44 Downloaded crunchy v0.2.2 Downloaded aho-corasick v0.7.15 Downloaded fslock v0.1.6 Downloaded digest v0.9.0 Downloaded deno_lint v0.2.14 Downloaded dashmap v3.11.10 Downloaded futures-util v0.3.8 Downloaded num-bigint v0.2.6 Downloaded hyper v0.13.9 Downloaded heck v0.3.2 Downloaded num_cpus v1.13.0 Downloaded log v0.4.11 Downloaded net2 v0.2.37 Downloaded httparse v1.3.4 Downloaded rustyline-derive v0.4.0 Downloaded lspower-macros v0.1.0 Downloaded async-compression v0.3.7 Downloaded notify v5.0.0-pre.4 Downloaded opaque-debug v0.3.0 Downloaded rustls v0.18.1 Downloaded semver v0.9.0 Downloaded once_cell v1.5.2 Downloaded hyper-rustls v0.21.0 Downloaded getrandom v0.1.16 Downloaded build_const v0.2.1 Downloaded num-traits v0.2.14 Downloaded matches v0.1.8 Downloaded lazy_static v1.4.0 Downloaded futures-macro v0.3.8 Downloaded env_logger v0.7.1 Downloaded generic-array v0.14.4 Downloaded Inflector v0.11.4 Downloaded miniz_oxide v0.4.3 Downloaded indexmap v1.6.1 Downloaded flate2 v1.0.19 Downloaded futures-channel v0.3.8 Downloaded pmutil v0.5.3 Downloaded new_debug_unreachable v1.0.4 Downloaded mio-extras v2.0.6 Downloaded deno_crypto v0.9.0 Downloaded dlopen v0.1.8 Downloaded remove_dir_all v0.5.3 Downloaded scoped-tls v1.0.0 Downloaded regex-syntax v0.6.21 Downloaded hashbrown v0.9.1 Downloaded futures-io v0.3.8 Downloaded http-body v0.3.1 Downloaded form_urlencoded v1.0.0 Downloaded enum_kind v0.2.0 Downloaded dissimilar v1.0.2 Downloaded futures-executor v0.3.8 Downloaded const-random v0.1.13 Downloaded byteorder v1.3.4 Downloaded ahash v0.3.8 Downloaded auto_impl v0.4.1 Downloaded cfg-if v1.0.0 Downloaded block-buffer v0.9.0 Downloaded anyhow v1.0.37 Downloaded mio v0.6.23 Downloaded serde_derive v1.0.118 Downloaded brotli v3.3.0 Downloaded nom v5.1.2 Downloaded semver-parser v0.9.0 Downloaded semver-parser v0.7.0 Downloaded ipnet v2.3.0 Downloaded lsp-types v0.85.0 Downloaded precomputed-hash v0.1.1 Downloaded fixedbitset v0.2.0 Downloaded mime v0.3.16 Downloaded libc v0.2.81 Downloaded ast_node v0.7.0 Downloaded rand_pcg v0.2.1 Downloaded crc32fast v1.2.1 Downloaded itoa v0.4.7 Downloaded deno_doc v0.1.19 Downloaded dprint-plugin-typescript v0.37.0 Downloaded siphasher v0.3.3 Downloaded shell-escape v0.1.5 Downloaded spin v0.5.2 Downloaded strsim v0.9.3 Downloaded proc-macro2 v1.0.24 Downloaded rand v0.7.3 Downloaded rand_core v0.5.1 Downloaded slab v0.4.2 Downloaded tinyvec_macros v0.1.0 Downloaded tracing v0.1.22 Downloaded thread_local v1.0.1 Downloaded try-lock v0.2.3 Downloaded swc_macros_common v0.3.1 Downloaded swc_eq_ignore_macros v0.1.0 Downloaded swc_ecma_visit v0.22.0 Downloaded swc_common v0.10.8 Downloaded regex v1.4.2 Downloaded swc_ecma_utils v0.26.1 Downloaded swc_ecma_dep_graph v0.11.0 Downloaded swc_ecma_transforms v0.31.2 Downloaded relative-path v1.3.2 Downloaded tracing-futures v0.2.4 Downloaded tracing-core v0.1.17 Downloaded thiserror v1.0.23 Downloaded termcolor v1.1.2 Downloaded ryu v1.0.5 Downloaded tower-service v0.3.0 Downloaded tokio v0.2.24 Downloaded swc_visit v0.2.2 Downloaded syn v0.15.44 Downloaded swc_ecma_codegen v0.42.2 Downloaded url v2.2.0 Downloaded want v0.3.0 Downloaded untrusted v0.7.1 Downloaded swc_visit_macros v0.2.2 Downloaded rustyline v7.1.0 Downloaded swc_ecma_parser_macros v0.4.1 Downloaded pin-project v0.4.27 Downloaded tungstenite v0.11.1 Downloaded proc-macro-nested v0.1.6 Downloaded unicode-xid v0.2.1 Downloaded typenum v1.12.0 Downloaded tokio-tungstenite v0.11.0 Downloaded unicode-normalization v0.1.16 Downloaded tokio-rustls v0.14.1 Downloaded same-file v1.0.6 Downloaded phf_shared v0.8.0 Downloaded rand_chacha v0.2.2 Downloaded futures-task v0.3.8 Downloaded phf v0.8.0 Downloaded string_enum v0.3.0 Downloaded serde_repr v0.1.6 Downloaded syn v1.0.57 Downloaded version_check v0.9.2 Downloaded uuid v0.8.1 Downloaded smallvec v1.6.0 Downloaded which v4.0.2 Downloaded thiserror-impl v1.0.23 Downloaded string_cache v0.8.1 Downloaded webpki v0.21.4 Downloaded walkdir v2.3.1 Downloaded reqwest v0.10.10 Downloaded unicode-xid v0.1.0 Downloaded sys-info v0.7.0 Downloaded serde v1.0.118 Downloaded serde_json v1.0.61 Downloaded proc-macro-error v1.0.4 Downloaded utf-8 v0.7.5 Downloaded unicode-bidi v0.3.4 Downloaded unicase v2.6.0 Downloaded webpki-roots v0.19.0 Downloaded swc_ecma_transforms_macros v0.1.2 Downloaded tinyvec v1.1.0 Downloaded static_assertions v1.1.0 Downloaded swc_bundler v0.18.2 Downloaded sourcemap v6.0.1 Downloaded socket2 v0.3.19 Downloaded lspower v0.1.0 Downloaded pin-project-lite v0.1.11 Downloaded pin-utils v0.1.0 Downloaded pin-project v1.0.2 Downloaded quote v1.0.8 Downloaded petgraph v0.5.1 Downloaded pin-project-lite v0.2.0 Downloaded pin-project-internal v0.4.27 Downloaded ppv-lite86 v0.2.10 Downloaded pin-project-internal v1.0.2 Downloaded sha-1 v0.9.2 Downloaded signal-hook-registry v1.3.0 Downloaded swc_ecma_ast v0.36.2 Downloaded rustc_version v0.2.3 Downloaded percent-encoding v2.1.0 Downloaded lexical-core v0.7.4 Downloaded string_cache_codegen v0.5.1 Downloaded unicode-segmentation v1.7.1 Downloaded tiny-keccak v2.0.2 Downloaded proc-macro-hack v0.5.19 Downloaded swc_ecma_codegen_macros v0.5.1 Downloaded swc_ecmascript v0.16.1 Downloaded stable_deref_trait v1.2.0 Downloaded swc_atoms v0.2.5 Downloaded tempfile v3.1.0 Downloaded rusty_v8 v0.15.0 Downloaded utf8parse v0.2.0 Downloaded tokio-macros v0.2.6 Downloaded webpki-roots v0.20.0 Downloaded serde_urlencoded v0.7.0 Downloaded tokio-util v0.3.1 Downloaded swc_ecma_parser v0.44.1 Downloaded sct v0.6.0 Downloaded ring v0.16.19 Downloaded 258 crates (30.6 MB) in 1.42s (largest was `rusty_v8` at 10.5 MB) Compiling proc-macro2 v1.0.24 Compiling unicode-xid v0.2.1 Compiling syn v1.0.57 Compiling libc v0.2.81 Compiling cfg-if v1.0.0 Compiling autocfg v1.0.1 Compiling lazy_static v1.4.0 Compiling cfg-if v0.1.10 Compiling memchr v2.3.4 Compiling log v0.4.11 Compiling once_cell v1.5.2 Compiling serde_derive v1.0.118 Compiling version_check v0.9.2 Compiling serde v1.0.118 Compiling fnv v1.0.7 Compiling itoa v0.4.7 Compiling getrandom v0.1.16 Compiling matches v0.1.8 Compiling proc-macro-hack v0.5.19 Compiling tinyvec_macros v0.1.0 Compiling ryu v1.0.5 Compiling hashbrown v0.9.1 Compiling percent-encoding v2.1.0 Compiling ppv-lite86 v0.2.10 Compiling bitflags v1.2.1 Compiling serde_json v1.0.61 Compiling slab v0.4.2 Compiling regex-syntax v0.6.21 Compiling futures-core v0.3.8 Compiling siphasher v0.3.3 Compiling futures-sink v0.3.8 Compiling proc-macro-nested v0.1.6 Compiling byteorder v1.3.4 Compiling cc v1.0.66 Compiling bytes v0.5.6 Compiling ident_case v1.0.1 Compiling strsim v0.9.3 Compiling pin-utils v0.1.0 Compiling unicode-width v0.1.8 Compiling futures-io v0.3.8 Compiling smallvec v1.6.0 Compiling precomputed-hash v0.1.1 Compiling new_debug_unreachable v1.0.4 Compiling base64 v0.11.0 Compiling stable_deref_trait v1.2.0 Compiling either v1.6.1 Compiling if_chain v1.0.1 Compiling pin-project-internal v0.4.27 Compiling scoped-tls v1.0.0 Compiling pin-project-lite v0.1.11 Compiling crunchy v0.2.2 Compiling untrusted v0.7.1 Compiling spin v0.5.2 Compiling getrandom v0.2.1 Compiling tiny-keccak v2.0.2 Compiling base64 v0.12.3 Compiling httparse v1.3.4 Compiling anyhow v1.0.37 Compiling pin-project-lite v0.2.0 Compiling lexical-core v0.7.4 Compiling cargo_gn v0.0.15 Compiling crc32fast v1.2.1 Compiling static_assertions v1.1.0 Compiling arrayvec v0.5.2 Compiling alloc-no-stdlib v2.0.1 Compiling try-lock v0.2.3 Compiling tower-service v0.3.0 Compiling adler v0.2.3 Compiling httpdate v0.3.2 Compiling encoding_rs v0.8.26 Compiling typenum v1.12.0 Compiling mime v0.3.16 Compiling base64 v0.13.0 Compiling proc-macro2 v0.4.30 Compiling ipnet v2.3.0 Compiling retain_mut v0.1.1 Compiling unicode-xid v0.1.0 Compiling syn v0.15.44 Compiling maybe-uninit v2.0.0 Compiling unicode-segmentation v1.7.1 Compiling opaque-debug v0.3.0 Compiling cpuid-bool v0.1.2 Compiling build_const v0.2.1 Compiling utf-8 v0.7.5 Compiling lazycell v1.3.0 Compiling termcolor v1.1.2 Compiling bumpalo v3.4.0 Compiling same-file v1.0.6 Compiling quick-error v1.2.3 Compiling utf8parse v0.2.0 Compiling fixedbitset v0.2.0 Compiling swc_bundler v0.18.2 Compiling anymap v0.12.1 Compiling strsim v0.8.0 Compiling remove_dir_all v0.5.3 Compiling radix_fmt v1.0.0 Compiling shell-escape v0.1.5 Compiling ansi_term v0.11.0 Compiling vec_map v0.8.2 Compiling relative-path v1.3.2 Compiling semver-parser v0.9.0 Compiling dissimilar v1.0.2 Compiling jsonc-parser v0.14.0 Compiling thread_local v1.0.1 Compiling tracing-core v0.1.17 Compiling futures-task v0.3.8 Compiling unicode-bidi v0.3.4 Compiling tinyvec v1.1.0 Compiling form_urlencoded v1.0.0 Compiling futures-channel v0.3.8 Compiling phf_shared v0.8.0 Compiling textwrap v0.11.0 Compiling owning_ref v0.4.1 Compiling http v0.2.2 Compiling input_buffer v0.3.1 Compiling indexmap v1.6.1 Compiling num-traits v0.2.14 Compiling num-integer v0.1.44 Compiling num-bigint v0.2.6 Compiling miniz_oxide v0.4.3 Compiling crossbeam-utils v0.7.2 Compiling unicase v2.6.0 Compiling nom v5.1.2 Compiling generic-array v0.14.4 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling alloc-stdlib v0.2.1 Compiling heck v0.3.2 Compiling walkdir v2.3.1 Compiling humantime v1.3.0 Compiling crc v1.8.1 Compiling unicode-normalization v0.1.16 Compiling brotli-decompressor v2.3.1 Compiling tracing v0.1.22 Compiling want v0.3.0 Compiling aho-corasick v0.7.15 Compiling quote v1.0.8 Compiling http-body v0.3.1 Compiling fxhash v0.2.1 Compiling idna v0.2.0 Compiling num_cpus v1.13.0 Compiling iovec v0.1.4 Compiling net2 v0.2.37 Compiling signal-hook-registry v1.3.0 Compiling fslock v0.1.6 Compiling socket2 v0.3.19 Compiling inotify-sys v0.1.4 Compiling atty v0.2.14 Compiling filetime v0.2.13 Compiling nix v0.19.1 Compiling fs2 v0.4.3 Compiling quote v0.6.13 Compiling ring v0.16.19 Compiling sys-info v0.7.0 Compiling brotli v3.3.0 Compiling regex v1.4.2 Compiling petgraph v0.5.1 Compiling flate2 v1.0.19 Compiling mime_guess v2.0.3 Compiling crossbeam-channel v0.4.4 Compiling ordered-float v1.1.1 Compiling rand_core v0.5.1 Compiling mio v0.6.23 Compiling const-random-macro v0.1.13 Compiling inotify v0.8.3 Compiling clap v2.33.3 Compiling digest v0.9.0 Compiling block-buffer v0.9.0 Compiling Inflector v0.11.4 Compiling env_logger v0.7.1 Compiling rand_pcg v0.2.1 Compiling rand_chacha v0.2.2 Compiling mio-uds v0.6.8 Compiling mio-extras v2.0.6 Compiling rustyline v7.1.0 Compiling const-random v0.1.13 Compiling sha-1 v0.9.2 Compiling rand v0.7.3 Compiling pmutil v0.5.3 Compiling darling_core v0.10.2 Compiling async-compression v0.3.7 Compiling notify v5.0.0-pre.4 Compiling ahash v0.3.8 Compiling swc_macros_common v0.3.1 Compiling phf_generator v0.8.0 Compiling uuid v0.8.1 Compiling tempfile v3.1.0 Compiling dashmap v3.11.10 Compiling string_cache_codegen v0.5.1 Compiling webpki v0.21.4 Compiling sct v0.6.0 Compiling webpki-roots v0.20.0 Compiling webpki-roots v0.19.0 Compiling swc_atoms v0.2.5 Compiling rustls v0.18.1 Compiling dlopen_derive v0.1.4 Compiling dlopen v0.1.8 Compiling pin-project-internal v1.0.2 Compiling futures-macro v0.3.8 Compiling darling_macro v0.10.2 Compiling swc_visit_macros v0.2.2 Compiling tokio-macros v0.2.6 Compiling from_variant v0.1.2 Compiling swc_eq_ignore_macros v0.1.0 Compiling thiserror-impl v1.0.23 Compiling string_enum v0.3.0 Compiling enum_kind v0.2.0 Compiling is-macro v0.1.8 Compiling swc_ecma_parser_macros v0.4.1 Compiling phf_macros v0.8.0 Compiling swc_ecma_transforms_macros v0.1.2 Compiling swc_ecma_codegen_macros v0.5.1 Compiling serde_repr v0.1.6 Compiling rustyline-derive v0.4.0 Compiling auto_impl v0.4.1 Compiling derive_more v0.99.11 Compiling lspower-macros v0.1.0 Compiling async-trait v0.1.42 Compiling darling v0.10.2 Compiling tokio v0.2.24 Compiling thiserror v1.0.23 Compiling phf v0.8.0 Compiling ast_node v0.7.0 Compiling which v4.0.2 Compiling swc_visit v0.2.2 Compiling rusty_v8 v0.15.0 Compiling pin-project v1.0.2 Compiling futures-util v0.3.8 Compiling tokio-util v0.3.1 Compiling tokio-rustls v0.14.1 Compiling futures-executor v0.3.8 Compiling futures v0.3.8 Compiling pin-project v0.4.27 Compiling tracing-futures v0.2.4 Compiling h2 v0.2.7 Compiling hyper v0.13.9 Compiling hyper-rustls v0.21.0 Compiling url v2.2.0 Compiling string_cache v0.8.1 Compiling serde_urlencoded v0.7.0 Compiling dprint-core v0.34.0 Compiling reqwest v0.10.10 Compiling tungstenite v0.11.1 Compiling sourcemap v6.0.1 Compiling deno_core v0.75.0 Compiling lsp-types v0.85.0 Compiling tokio-tungstenite v0.11.0 Compiling swc_common v0.10.8 Compiling deno_web v0.26.0 Compiling deno_fetch v0.18.0 Compiling deno_crypto v0.9.0 Compiling swc_ecma_ast v0.36.2 Compiling jsdoc v0.12.0 Compiling lspower v0.1.0 Compiling deno_runtime v0.5.0 Compiling deno v1.6.3 Compiling swc_ecma_visit v0.22.0 Compiling swc_ecma_parser v0.44.1 Compiling swc_ecma_utils v0.26.1 Compiling swc_ecma_dep_graph v0.11.0 Compiling swc_ecma_transforms v0.31.2 Compiling swc_ecma_codegen v0.42.2 error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2015/arrow.rs:65:1 | 65 | #[fast_path(ArrowVisitor)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2016/exponentation.rs:42:1 | 42 | #[fast_path(ShouldFold)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2016/exponentation.rs:99:1 | 99 | #[fast_path(ShouldFold)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2017/async_to_generator.rs:43:1 | 43 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2017/async_to_generator.rs:80:1 | 80 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2018/object_rest_spread.rs:1094:1 | 1094 | #[fast_path(SpreadVisitor)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared type or module `swc_ecma_transforms_base` --> /home/wederribas/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2018/optional_catch_binding.rs:12:1
Versions:
Cargo: cargo 1.46.0 (149022b1d 2020-07-17)
Rust: rustc 1.46.0 (04488afe3 2020-08-24)
Operating System: Fedora 33 (Workstation Edition)
Kernel: Linux 5.9.16-200.fc33.x86_64
Just adding my 2 cents
So the problem relies on the dependency swc_ecma_transforms
v0.31.2 that cannot compile due to error 0443
, which describe the error as An undeclared type or module was used.
. Just some code related issue. However when you locally build deno
that uses swc_ecma_transforms
v0.32 their will be no errors while installing deno. It seems to be that Deno v16.3 uses a faulty dependency.
I found a temporary solution and a probable cause.
Solution:
cargo install deno --locked
My guess is that it is same linked described here. Probably there is a mismatch between between the Cargo.lock file and the packages used by cargo install
. Hope this helps.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
I still have this problem, but with a different error message. When I try cargo install deno
, I get his
Compiling deno_lint v0.2.19
error[E0597]: `line` does not live long enough
--> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/deno_lint-0.2.19/src/rules/no_irregular_whitespace.rs:74:61
|
74 | if let Some(whitespace_results) = test_for_whitespace(&line) {
| --------------------^^^^^-
| | |
| | borrowed value does not live long enough
| a temporary with access to the borrow is created here ...
...
96 | }
| -
| |
| `line` dropped here while still borrowed
| ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::option::Option<Vec<regex::Matches<'_, '_>>>`
|
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
|
95 | };
| ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.
error: could not compile `deno_lint`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.8.1`, intermediate artifacts can be found at `/var/folders/mn/5w8tjr6j4vg2n0__rpxq0r100000gn/T/cargo-installCGicZk`
Caused by:
build failed
cargo install deno --locked
works for me too, but failing cargo install is still not good.
We figured out what is causing it. deno_lint updates were not semver compliant. We will adhere to semver for deno_lint in upcoming releases to prevent this. Closing as solved.
cargo install deno
fails to install with build errorfailed to resolve: use of undeclared crate or module swc_ecma_transforms_base
. Manually building by downloading thedeno(1.6.3)
repo and usingcargo build --release
works fine.cargo install --path $DENO/cli
also fails with the same error.Logs
```sh $ cargo install deno Updating crates.io index Installing deno v1.6.3 Compiling proc-macro2 v1.0.24 Compiling unicode-xid v0.2.1 Compiling syn v1.0.57 Compiling libc v0.2.81 Compiling autocfg v1.0.1 Compiling memchr v2.3.4 Compiling log v0.4.11 Compiling cfg-if v1.0.0 Compiling serde_derive v1.0.118 Compiling serde v1.0.118 Compiling cfg-if v0.1.10 Compiling version_check v0.9.2 Compiling lazy_static v1.4.0 Compiling proc-macro-hack v0.5.19 Compiling ryu v1.0.5 Compiling getrandom v0.1.16 Compiling bitflags v1.2.1 Compiling serde_json v1.0.61 Compiling proc-macro-nested v0.1.6 Compiling fnv v1.0.7 Compiling itoa v0.4.7 Compiling matches v0.1.8 Compiling tinyvec_macros v0.1.0 Compiling hashbrown v0.9.1 Compiling once_cell v1.5.2 Compiling cc v1.0.66 Compiling percent-encoding v2.1.0 Compiling ppv-lite86 v0.2.10 Compiling regex-syntax v0.6.21 Compiling pin-project-internal v0.4.27 Compiling siphasher v0.3.3 Compiling futures-core v0.3.8 Compiling slab v0.4.2 Compiling byteorder v1.3.4 Compiling unicode-width v0.1.8 Compiling strsim v0.9.3 Compiling anyhow v1.0.37 Compiling httparse v1.3.4 Compiling ident_case v1.0.1 Compiling futures-sink v0.3.8 Compiling cargo_gn v0.0.15 Compiling precomputed-hash v0.1.1 Compiling crc32fast v1.2.1 Compiling new_debug_unreachable v1.0.4 Compiling if_chain v1.0.1 Compiling stable_deref_trait v1.2.0 Compiling futures-io v0.3.8 Compiling bytes v0.5.6 Compiling base64 v0.11.0 Compiling pin-utils v0.1.0 Compiling either v1.6.1 Compiling scoped-tls v1.0.0 Compiling crunchy v0.2.2 Compiling getrandom v0.2.1 Compiling untrusted v0.7.1 Compiling spin v0.5.2 Compiling tiny-keccak v2.0.2 Compiling smallvec v1.6.0 Compiling pin-project-lite v0.1.11 Compiling encoding_rs v0.8.26 Compiling pin-project-lite v0.2.0 Compiling lexical-core v0.7.4 Compiling arrayvec v0.5.2 Compiling static_assertions v1.1.0 Compiling alloc-no-stdlib v2.0.1 Compiling adler v0.2.3 Compiling base64 v0.12.3 Compiling try-lock v0.2.3 Compiling tower-service v0.3.0 Compiling typenum v1.12.0 Compiling httpdate v0.3.2 Compiling mime v0.3.16 Compiling proc-macro2 v0.4.30 Compiling base64 v0.13.0 Compiling ipnet v2.3.0 Compiling retain_mut v0.1.1 Compiling unicode-xid v0.1.0 Compiling maybe-uninit v2.0.0 Compiling syn v0.15.44 Compiling opaque-debug v0.3.0 Compiling build_const v0.2.1 Compiling cpuid-bool v0.1.2 Compiling utf-8 v0.7.5 Compiling bumpalo v3.4.0 Compiling quick-error v1.2.3 Compiling same-file v1.0.6 Compiling termcolor v1.1.2 Compiling unicode-segmentation v1.7.1 Compiling fixedbitset v0.2.0 Compiling utf8parse v0.2.0 Compiling anymap v0.12.1 Compiling swc_bundler v0.18.2 Compiling remove_dir_all v0.5.3 Compiling relative-path v1.3.2 Compiling vec_map v0.8.2 Compiling strsim v0.8.0 Compiling radix_fmt v1.0.0 Compiling ansi_term v0.11.0 Compiling shell-escape v0.1.5 Compiling jsonc-parser v0.14.0 Compiling dissimilar v1.0.2 Compiling semver-parser v0.9.0 Compiling thread_local v1.0.1 Compiling tracing-core v0.1.17 Compiling unicode-bidi v0.3.4 Compiling tinyvec v1.1.0 Compiling unicase v2.6.0 Compiling nom v5.1.2 Compiling generic-array v0.14.4 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling form_urlencoded v1.0.0 Compiling futures-task v0.3.8 Compiling indexmap v1.6.1 Compiling num-traits v0.2.14 Compiling num-integer v0.1.44 Compiling num-bigint v0.2.6 Compiling miniz_oxide v0.4.3 Compiling crossbeam-utils v0.7.2 Compiling textwrap v0.11.0 Compiling phf_shared v0.8.0 Compiling futures-channel v0.3.8 Compiling owning_ref v0.4.1 Compiling http v0.2.2 Compiling input_buffer v0.3.1 Compiling alloc-stdlib v0.2.1 Compiling ring v0.16.19 Compiling sys-info v0.7.0 Compiling humantime v1.3.0 Compiling crc v1.8.1 Compiling walkdir v2.3.1 Compiling heck v0.3.2 Compiling unicode-normalization v0.1.16 Compiling brotli-decompressor v2.3.1 Compiling tracing v0.1.22 Compiling want v0.3.0 Compiling aho-corasick v0.7.15 Compiling quote v1.0.8 Compiling http-body v0.3.1 Compiling num_cpus v1.13.0 Compiling iovec v0.1.4 Compiling net2 v0.2.37 Compiling signal-hook-registry v1.3.0 Compiling socket2 v0.3.19 Compiling atty v0.2.14 Compiling fsevent-sys v3.0.2 Compiling fs2 v0.4.3 Compiling nix v0.19.1 Compiling filetime v0.2.13 Compiling fslock v0.1.6 Compiling fxhash v0.2.1 Compiling idna v0.2.0 Compiling quote v0.6.13 Compiling mime_guess v2.0.3 Compiling brotli v3.3.0 Compiling regex v1.4.2 Compiling mio v0.6.23 Compiling rand_core v0.5.1 Compiling petgraph v0.5.1 Compiling clap v2.33.3 Compiling fsevent v2.0.2 Compiling const-random-macro v0.1.13 Compiling flate2 v1.0.19 Compiling crossbeam-channel v0.4.4 Compiling digest v0.9.0 Compiling block-buffer v0.9.0 Compiling ordered-float v1.1.1 Compiling rand_pcg v0.2.1 Compiling rand_chacha v0.2.2 Compiling mio-uds v0.6.8 Compiling Inflector v0.11.4 Compiling env_logger v0.7.1 Compiling rustyline v7.1.0 Compiling webpki v0.21.4 Compiling sct v0.6.0 Compiling const-random v0.1.13 Compiling sha-1 v0.9.2 Compiling notify v5.0.0-pre.4 Compiling rand v0.7.3 Compiling async-compression v0.3.7 Compiling pmutil v0.5.3 Compiling darling_core v0.10.2 Compiling rustls v0.18.1 Compiling webpki-roots v0.20.0 Compiling ahash v0.3.8 Compiling uuid v0.8.1 Compiling tempfile v3.1.0 Compiling swc_macros_common v0.3.1 Compiling dlopen_derive v0.1.4 Compiling dashmap v3.11.10 Compiling phf_generator v0.8.0 Compiling dlopen v0.1.8 Compiling string_cache_codegen v0.5.1 Compiling pin-project-internal v1.0.2 Compiling futures-macro v0.3.8 Compiling tokio-macros v0.2.6 Compiling thiserror-impl v1.0.23 Compiling swc_visit_macros v0.2.2 Compiling swc_eq_ignore_macros v0.1.0 Compiling from_variant v0.1.2 Compiling is-macro v0.1.8 Compiling string_enum v0.3.0 Compiling enum_kind v0.2.0 Compiling swc_ecma_parser_macros v0.4.1 Compiling phf_macros v0.8.0 Compiling swc_ecma_transforms_macros v0.1.2 Compiling swc_ecma_codegen_macros v0.5.1 Compiling serde_repr v0.1.6 Compiling derive_more v0.99.11 Compiling rustyline-derive v0.4.0 Compiling async-trait v0.1.42 Compiling auto_impl v0.4.1 Compiling lspower-macros v0.1.0 Compiling swc_atoms v0.2.5 Compiling darling_macro v0.10.2 Compiling tokio v0.2.24 Compiling pin-project v1.0.2 Compiling thiserror v1.0.23 Compiling pin-project v0.4.27 Compiling swc_visit v0.2.2 Compiling phf v0.8.0 Compiling darling v0.10.2 Compiling futures-util v0.3.8 Compiling which v4.0.2 Compiling tracing-futures v0.2.4 Compiling ast_node v0.7.0 Compiling rusty_v8 v0.15.0 Compiling webpki-roots v0.19.0 Compiling tokio-util v0.3.1 Compiling tokio-rustls v0.14.1 Compiling futures-executor v0.3.8 Compiling h2 v0.2.7 Compiling url v2.2.0 Compiling serde_urlencoded v0.7.0 Compiling string_cache v0.8.1 Compiling dprint-core v0.34.0 Compiling futures v0.3.8 Compiling tungstenite v0.11.1 Compiling deno_core v0.75.0 Compiling sourcemap v6.0.1 Compiling lsp-types v0.85.0 Compiling tokio-tungstenite v0.11.0 Compiling swc_common v0.10.8 Compiling deno_web v0.26.0 Compiling deno_crypto v0.9.0 Compiling hyper v0.13.9 Compiling swc_ecma_ast v0.36.2 Compiling jsdoc v0.12.0 Compiling hyper-rustls v0.21.0 Compiling reqwest v0.10.10 Compiling deno_fetch v0.18.0 Compiling deno_runtime v0.5.0 Compiling deno v1.6.3 Compiling lspower v0.1.0 Compiling swc_ecma_visit v0.22.0 Compiling swc_ecma_parser v0.44.1 Compiling swc_ecma_utils v0.26.1 Compiling swc_ecma_dep_graph v0.11.0 Compiling swc_ecma_codegen v0.42.2 Compiling swc_ecma_transforms v0.31.2 error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2015/arrow.rs:65:1 | 65 | #[fast_path(ArrowVisitor)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2016/exponentation.rs:42:1 | 42 | #[fast_path(ShouldFold)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2016/exponentation.rs:99:1 | 99 | #[fast_path(ShouldFold)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2017/async_to_generator.rs:43:1 | 43 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2017/async_to_generator.rs:80:1 | 80 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2018/object_rest_spread.rs:1094:1 | 1094 | #[fast_path(SpreadVisitor)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2018/optional_catch_binding.rs:12:1 | 12 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2020/class_properties.rs:55:1 | 55 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2020/nullish_coalescing/mod.rs:50:1 | 50 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/es2020/opt_chaining.rs:22:1 | 22 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: use of undeclared crate or module `swc_ecma_transforms_base` --> /Users/ianwahbe/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_transforms-0.31.2/src/compat/reserved_words.rs:15:1 | 15 | #[fast_path(ShouldWork)] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `swc_ecma_transforms_base` | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 11 previous errors For more information about this error, try `rustc --explain E0433`. error: could not compile `swc_ecma_transforms` To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile `deno v1.6.3`, intermediate artifacts can be found at `/var/folders/mn/5w8tjr6j4vg2n0__rpxq0r100000gn/T/cargo-installdQfwOh` Caused by: build failed ```Versions: Cargo:
cargo 1.50.0-nightly (75d5d8cff 2020-12-22)
Rust:
rustc 1.51.0-nightly (44e3daf5e 2020-12-31)
OS:
macOS Catalina 10.15.7