Skip to content

bug: Constructor for "my-checkbox#undefined" was not found #6416

@Cliffback

Description

@Cliffback

Prerequisites

Stencil Version

=4.28.0

Current Behavior

When upgrading from 4.27.2 to v4.28.0 or all future versions we get the following error in a project running Vite when running Vitest.

Error: Constructor for "my-checkbox#undefined" was not found
initializeComponent node_modules/@stencil/core/internal/client/index.j
s?app-data=conditional:3858:13

This error originated in "src/__tests__/pages/*.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while 
it was running.
The latest test that might've caused the error is "Editing search filter edits rows in table". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

The diff:
v4.27.2...v4.28.0

Expected Behavior

Works fine before 4.28.0

System Info

System: node 22.19.0
    Platform: linux (6.6.87.2-microsoft-standard-WSL2)
   CPU Model: 12th Gen Intel(R) Core(TM) i7-12800HX (24 cpus)
    Compiler: /home/username/dev/tmp/my-project/node_modules/@stencil/core/compiler/stencil.js
       Build: 1757722623
     Stencil: 4.37.0
  TypeScript: 5.5.4
      Rollup: 4.34.9
      Parse5: 7.2.1
      jQuery: 4.0.0-pre
      Terser: 5.37.0

Steps to Reproduce

This is the same project as in #6415, so I'll see if I can manage to get a reproduction repo up and running

Code Reproduction URL

N/A

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions