can't run shell command #3122
-
Problem Steps To Reproduce use yew::prelude::*; pub enum Msg { pub struct App { impl Component for App {
} Expected behavior Screenshots Stack: Error Environment:
Questionnaire |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This code is run in WASM runtime in your browser. There is not such thing as a shell command in this environment. You may create a server side API, call this API -- which intern calls |
Beta Was this translation helpful? Give feedback.
-
thank you very much |
Beta Was this translation helpful? Give feedback.
This code is run in WASM runtime in your browser. There is not such thing as a shell command in this environment. You may create a server side API, call this API -- which intern calls
Command::new
and returns the output.