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

QWIK WARN Duplicate implementations of "JSXNode" found #18

Closed
kepi opened this issue Jan 6, 2024 · 6 comments
Closed

QWIK WARN Duplicate implementations of "JSXNode" found #18

kepi opened this issue Jan 6, 2024 · 6 comments

Comments

@kepi
Copy link

kepi commented Jan 6, 2024

Hi,

I'm getting 3x QWIK WARN Duplicate implementations of "JSXNode" found warning for every icon I use. I'm on @qwikest/icons 0.0.13 and qwik 1.3.2.

What seems different from #11 if I understood it correctly is, that I'm getting this error during development.

@NiklasPor
Copy link
Contributor

I can try bumping the dependencies and build to the latest version, that might fix it (again 👀)

@kepi
Copy link
Author

kepi commented Jan 6, 2024

Thanks for fast reply, but I just found out that problem is probably somewhere in my stack. I have same trouble with @unpic/qwik.

I'm using Nx but when I start qwik without Nx, it works. It hadn't cross my mind before that it might be the root of issue. Maybe something in Qwik-Nx executor... I'm checking it but wanted to let you know quickly so you don't spend time on this. Thanks!

@kepi
Copy link
Author

kepi commented Jan 6, 2024

For sake of those who bump into same problem and using Nx, replacing @nx/vite with simple command did the job in my case:

    "serve": {
      "executor": "nx:run-commands",
      "options": {
        "command": "vite --mode=ssr",
        "cwd": "apps/porici"
      }
    },

@NiklasPor sorry for taking your time. I tried so many thing before reporting :D

@kepi kepi closed this as completed Jan 6, 2024
@ertl
Copy link

ertl commented Apr 11, 2024

@kepi I have the same problem. Can you explain what exactly the problem is here? Your configuration seems to fix the warning, but then I get errors when loading modules in combination with @modular-forms/qwik.

@kepi
Copy link
Author

kepi commented Apr 11, 2024

Sorry, I moved away from Nx and don't remember this exactly.

In my case Nx helped with couple things but complicated more. There is too much boilerplate, hidden traps and magic.

@ertl
Copy link

ertl commented Apr 12, 2024

@kepi no problem.

I solved the warning by switching to a single version policy for my dependency management (https://nx.dev/concepts/more-concepts/dependency-management). Now also the @nx/vite executor works fine.

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

3 participants