Skip to content

[Vue warn]: Unknown custom element: <search> - #2990

@plweil

Description

@plweil

<search>is a legitimate html5 element. Why is Vue (v2.6.12) complaining that it is unknown?

[Vue warn]: Unknown custom element: <search> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

In the template section of my component:

           <template>
          <div>
             <search>
              <label for="uw-major-search" class="text-search">Keyword Search</label>
                <input
                    id="uw-major-search"
                    class="uw-program-search"
                    name="uw-major-search"
                    v-model="majorSearchInput"
                    type="search"
                >
                
                [search results and other stuff]
                </search>
           </div>
          </template>

Activity

Jinjiang

Jinjiang commented on Apr 12, 2023

@Jinjiang
Member

Hi @plweil glad you found this. Let me explain:

So I'm sorry we couldn't meet your expectation. I hope you'll be able to understand that.

And since it's not a docs-related issue. I'm going to close it if you don't mind. Thanks.

plweil

plweil commented on Apr 12, 2023

@plweil
Author

Yes, I didn't realize that it was added so recently. My apologies. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Jinjiang@plweil

        Issue actions

          [Vue warn]: Unknown custom element: <search> - · Issue #2990 · vuejs/v2.vuejs.org