-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Material UI doesn't work as provided in documentation #47
Comments
@MadMed677 yes, the published version is quite old. you should take a dependency from git, which should be fine |
Maybe I did something wrong but even if I fetch First optionCargo.toml[dependencies]
material-yew = { git = "https://github.com/ranile/material-yew", branch="material-3" }
web-sys = "0.3.69"
yew = { git = "https://github.com/yewstack/yew", features = ["csr"] } The error says that 32 times for every component: cannot find function `__dummy_loader` in this scope
crate::import_material_web_module!("/md-web/radio.js")
| ------------------------------------------------------ in this macro invocation Other optionsAll other implementation have the same problem <MatButton label="Add" raised=true>{"Add one"}</MatButton>
| ^^^^^^^^^ the trait `yew::Component` is not implemented for `MatButton`, which is required by `MatButton: yew::BaseComponent` |
@MadMed667 right, the git one gives you an error, I should've expected that. It can't find the modules I suggest you clone the repo and then use a path dependency for now. You'll you invoke rollup yourself
This should fix your JS files not available issue. One good way of permanently solving this problem is having a build script that calls |
Hello @ranile! I've faced with the problem and maybe you could help me to understand how to fix it.
Problem description
Step 1
When I'm trying to use material yew based on documentation page
I've faced with an error:
unresolved import
material_yew::MatButtonthe item is gated behind the
buttonfeature
Step 2
If I add
button
featureI see the following error:
I guess this is because I'm using a new version of
yew
which is0.21.0
and the traits has been changed since lastmaterial-yew
publish.The text was updated successfully, but these errors were encountered: