Skip to content

Accordion component not working in .mdx file. Unknown element <[object Object]> in collection. #1891

Closed
@uptonking

Description

@uptonking

🐛 Bug Report

  • I want to render Accordion component in a .mdx file.
  • for example, write documentation for Accordion in .mdx

🤔 Expected Behavior

  • Accordion component in hello.mdx should be rendered in the App.

😯 Current Behavior

error message in the console:

module.js:241 
	Uncaught Error: Unknown element <[object Object]> in collection.
    at $f8429209754fda4b9142d514065f4$export$CollectionBuilder.getFullNode (module.js:241)
    at getFullNode.next (<anonymous>)
    at $f8429209754fda4b9142d514065f4$export$CollectionBuilder.iterateCollection (module.js:177)
    at iterateCollection.next (<anonymous>)
    at Object.[Symbol.iterator] (module.js:351)
    at Generator.next (<anonymous>)
    at new $afa6f708e32ecf7f97d9a58dfd59c$export$TreeCollection (module.js:51)

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
react-spectrum latest
Browser
Operating System

🧢 Your Company/Team

🕷 Tracking Issue (optional)

@devongovett @LFDanLu @so99ynoodles

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

    Issue actions