Subscribe on changes!

Imported components within "<script setup" are not renderable dynamically

avatar
Feb 7th 2023

Vue version

3.2.47

Link to minimal reproduction

https://sfc.vuejs.org/#eNqVU91O8zAMfRWTm4FEW3FblU/6xGvkJks9GshPlbgb1bR3x0kLmwZCcJfYzjn28clR/B/Hej+haEVH6EarCP9JD9AND5BotvgohQ42xBZ6FV8j9lKUAoCnKVFw8BTcGDx6gjSEyfawRYjoe+RauO1nr5zRytr5jjM2HCB4jeDC5An7tnA1w8NCelNVcPGCn0/OzXBQ/JjiDBRWaKABQS8N6I8GWqgqxpHUfYagNYkn2Kto1NaiFNAUpsK2jcvlN4cC+70mzxHR/02VRIp+JwqzZlHOD/6mQ8lUZznyMF1zsWm+Jh3NyH0iTSNHDNdGgiMz7OAEu8jQG7bI5jO1jHiesJRIUTfXdNlZUmQSHXwi+FgDPGbw2811/eYud7f0w52Ie7EwVk6N9UsKnm16LNtYE0mKFkokxwpby4eBaExt06Sdzi28pDrE54ZPdWSBjcMak6u2MRwSRgaW4v4Co+HgHmO1riv+hHlV+gU3w56kP/Eo34lz9e14Y73Zr0bixFtWofRFX2xl0tlPyvdl+8byJU1aY0q7ic1ys0LxxlesrlkYLkwgTu9ey2a4

Steps to reproduce

  1. Use SFC.
  2. Use <script setup>.
  3. Import a custom component (e.g., CustomComponent). Now CustomComponent should be exposed to the template. As per the docs

With