Skip to content

Module not found: Error: Can't resolve 'env' #1907

Closed
@wangyiran125

Description

@wangyiran125

Summary

A clear and concise summary of your question.

Module not found: Error: Can't resolve 'env' in 'D:\project\rust\wasm-pack-template\pkg'

Additional Details

Provide any additional details here.
when i add it to lib.rs

#[wasm_bindgen]
pub fn parseTest() -> String{
    let resp = ureq::get("www.google.com")
         .call();
    let text = resp.into_string().unwrap();
    text
}

cargo.toml add
ureq = { version = "0.11.2", features = ["json"] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions