Skip to content

Dev Setup: Build error in @contentauth/toolkit package #185

@kodalegit

Description

@kodalegit

I am trying to get the library running on Ubuntu 20.04.6 LTS.

Steps to Reproduce

  1. Run cargo install wasm-pack after installing Rust
  2. Run rush install
  3. Run rush build

I am getting the following error when I try to run rush build:

==[ FAILURE: 1 operation ]=====================================================

--[ FAILURE: @contentauth/toolkit ]-------------------------[ 52.80 seconds ]--

Error building release: { msg: 'wasm-pack exited with non-zero status code' }


Operations failed.

When I tried to build the @contentauth/toolkit package individually using npm run build:verbose, I was able to track down the following error:

[wasm-pack] error[E0282]: type annotations needed for `Box<_>`
  --> /home/codespace/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++


[wasm-pack] For more information about this error, try `rustc --explain E0282`.

[wasm-pack] error: could not compile `time` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions