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

Fix bug in template #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JurrianFahner
Copy link

When this code has been checked out.
trunk build fails with following error: "Document has neither a nor a . Either one must be present."

When the <link data-trunk rel="rust"/> snippet is added, the code will build successfully.

Without this fix, the getting started guide of yew will fail with an error.

@kopp
Copy link

kopp commented Nov 18, 2024

Copilot proposed to use

    <link data-trunk rel="sass" href="index.scss" />

and now I'm confused about all this. @siku2 or @scode can you help?

@JurrianFahner
Copy link
Author

Copilot proposed to use

    <link data-trunk rel="sass" href="index.scss" />

and now I'm confused about all this. @siku2 or @scode can you help?

@kopp The rel options are described in the documentation: https://trunkrs.dev/assets/#sass-scss

If you would also add the href attribute, also that file needs to be added too.

The choice for the rel variant to use is debatable. So to align with a reasonable default has a link to the vision of the project.

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

Successfully merging this pull request may close these issues.

2 participants