Skip to content
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

_TAILWIND_URL returns Failed to add asset: No such file or directory (os error 2) #2423

Open
1 of 3 tasks
steadily-worked opened this issue May 17, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@steadily-worked
Copy link

steadily-worked commented May 17, 2024

Problem

const _TAILWIND_URL: &str = manganis::mg!(file("public/tailwind.css"));

it returns Failed to add asset: No such file or directory (os error 2).

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

error doesn't appear.

Screenshots

스크린샷 2024-05-17 오전 11 06 20

in addition to screenshot. i've tried some additions to Dioxus.toml. and below is my setting. Even with the default settings, changing the settings still doesn't make the error go away.

[application]

# App (Project) Name
name = "client"

# Dioxus App Default Platform
# desktop, web
default_platform = "web"

# `build` & `serve` dist path
out_dir = "dist"

# resource (assets) file folder
asset_dir = "assets"

[web.app]

# HTML title tag content
title = "client"

[web.watcher]

# when watcher trigger, regenerate the `index.html`
reload_html = true

# which files or dirs will be watcher monitoring
watch_path = ["src", "assets", "public"]

# include `assets` in web platform
[web.resource]

# CSS style file

style = ["public/tailwind.css"]

# Javascript code file
script = []

[web.resource.dev]

# Javascript code file
# serve: [dev-server] only
script = []

Environment:

  • Dioxus version: v0.5
  • Rust version: rustc 1.80.0-nightly (1fffb2a35 2024-04-28)
  • OS info: MacOS Sonoma v14.4.1
  • App platform: Web

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant