-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Current Behavior
I created a new, simple project with the qwix-nx plugin, and then I built the project with the nx build appliance-commerce command. However, it showed this warning, how can I get rid of this?
i noticed that the warning indicates that I have a duplicate key dangerouslySetInnerHTML inside my router-head.tsx file but I did not modify the file.
router-head.tsx file
import { component$ } from '@builder.io/qwik';
import { useDocumentHead, useLocation } from '@builder.io/qwik-city';
/**
* The RouterHead component is placed inside of the document `<head>` element.
*/
export const RouterHead = component$(() => {
const head = useDocumentHead();
const loc = useLocation();
return (
<>
<title>{head.title}</title>
<link rel="canonical" href={loc.url.href} />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
{head.meta.map((m) => (
<meta key={m.key} {...m} />
))}
{head.links.map((l) => (
<link key={l.key} {...l} />
))}
{head.styles.map((s) => (
<style key={s.key} {...s.props} dangerouslySetInnerHTML={s.style} />
))}
{head.scripts.map((s) => (
<script key={s.key} {...s.props} dangerouslySetInnerHTML={s.script} />
))}
</>
);
});
Expected Behavior
When build the project it should not show the warning messages.
GitHub Repo
https://github.com/ardiansah47/appliance-commerce
Steps to Reproduce
- Clone the project
- Install the dependencies
- Run nx build appliance-commerce
Nx Report
Node : 23.5.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 9.15.3
nx (global) : 20.3.2
nx : 20.3.3
@nx/js : 20.3.3
@nx/eslint : 20.3.3
@nx/workspace : 20.3.3
@nx/eslint-plugin : 20.3.3
@nx/vite : 20.3.3
@nx/web : 20.3.3
typescript : 5.6.3
---------------------------------------
Community plugins:
qwik-nx : 3.0.0Failure Logs
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels