You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of #3410, I had to make a full copy of the project in an adjacent directory, where everything is symlinked to ../original-project/, except for Cargo.toml and now with v0.6.1 — tailwind.css (actually all explicitly used assets). I'm pretty sure it's because Dioxus checks fully resolved absolute path, which is indeed outside of the checked crate, so it gives this:
13:08:21[dev]Full rebuild: triggered manually
13:08:22[cargo] error:Asset path /path/to/project/assets/favicon.ico is invalid.Make sure the asset exists within this crate
--> src/main.rs:28:24
|
28 | constFAVICON:Asset = asset!("/assets/favicon.ico");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `asset` (in Nightly builds, run with -Z macro-backtrace for more info
13:08:22[cargo] error:Asset path /path/to/project/assets/styling/main.css is invalid.Make sure the asset exists within this crate
--> src/main.rs:29:25
|
29 | constMAIN_CSS:Asset = asset!("/assets/styling/main.css");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `asset` (in Nightly builds, run with -Z macro-backtrace for more info
13:08:22[cargo] error:Asset path /path/to/project/assets/styling/tailwind.css is invalid.Make sure the asset exists within this crate
--> src/main.rs:30:29
|
30 | constTAILWIND_CSS:Asset = asset!("/assets/styling/tailwind.css");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `asset` (in Nightly builds, run with -Z macro-backtrace for more info
13:08:23[cargo] error: could not compile `desktop` (bin "desktop") due to 3 previous errors;2 warnings emitted
I'm interested in fixing this myself but don't know where to start.
I would like to fix and I think have a solution.
I don't have time to fix this right now, but maybe later.
The text was updated successfully, but these errors were encountered:
Problem
Because of #3410, I had to make a full copy of the project in an adjacent directory, where everything is symlinked to
../original-project/
, except forCargo.toml
and now with v0.6.1 —tailwind.css
(actually all explicitly used assets). I'm pretty sure it's because Dioxus checks fully resolved absolute path, which is indeed outside of the checked crate, so it gives this:Steps To Reproduce
Steps to reproduce the behavior:
dx new test
mkdir test-copy
fd -d 1 -E target '' test -X ln -sr '{}' test-copy
cd test-copy
dx serve
Expected behavior
I used this project with v0.6.0 and didn't have such issues.
Screenshots
Environment:
Questionnaire
I'm interested in fixing this myself but don't know where to start.
I would like to fix and I think have a solution.
I don't have time to fix this right now, but maybe later.
The text was updated successfully, but these errors were encountered: