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

[🐞] v2 Error TS4023 when building types #7394

Open
markovickosta opened this issue Mar 4, 2025 · 0 comments
Open

[🐞] v2 Error TS4023 when building types #7394

markovickosta opened this issue Mar 4, 2025 · 0 comments

Comments

@markovickosta
Copy link

Which component is affected?

Qwik Runtime

Describe the bug

When using

imageAttributes?: PropsOf<'image'>;
pictureAttributes?: PropsOf<'picture'>;

I get the following error when I build types (tsc -b):
For picture:
error TS4023: Exported variable 'Homepage' has or is using name 'HTMLElementAttrs' from external module "/Users/kosta/Documents/qwik-2-test/node_modules/@qwik.dev/core/dist/core-internal" but cannot be named.
For image:
error TS4023: Exported variable 'Homepage' has or is using name 'SVGProps' from external module "/Users/kosta/Documents/qwik-2-test/node_modules/@qwik.dev/core/dist/core-internal" but cannot be named.

Reproduction

markovickosta/qwik-2-test#7

Steps to reproduce

Repro:

  • Checkout branch km/type-build-error
  • npm i
  • npm run type-build-all

System Info

System:
  OS: macOS 15.3.1
  CPU: (10) arm64 Apple M4
  Memory: 255.33 MB / 16.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 22.14.0 - /usr/local/bin/node
  npm: 11.1.0 - /usr/local/bin/npm
Browsers:
  Chrome: 133.0.6943.142
  Safari: 18.3
npmPackages:
  typescript: 5.4.5 => 5.4.5 
  vite: 5.2.1 => 5.2.1

Additional Information

No response

@markovickosta markovickosta added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Mar 4, 2025
@Varixo Varixo added COMP: runtime VERSION: upcoming major and removed STATUS-1: needs triage New issue which needs to be triaged labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants