Skip to content

Failed to execute 'createElement' #148

@ross-lanes

Description

@ross-lanes

It looks like the default export for the ems is not a string and not the component object as of v3.2.2/3.2.1 to resolve reverted to 3.2.0

Expected behavior
import AnimateHeight from 'react-animate-height'; results in AnimateHeight being a react component

current behavior
import AnimateHeight from 'react-animate-height'; results in AnimateHeight being the string (ex: '/static/media/index.c7618d05.cjs'

This results in the error

InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/index.c7618d05.cjs') is not a valid name.

Possible Solution
I have no clue why this is happening

Steps to Reproduce (for bugs)
create an application using v3.2.2 that compiles using vite.JS or react-scripts and renders an AnimateHeight component

Your Environment

  • Version used: v3.2.2 and v3.2.1
  • OS: windows/Linux
  • Browser chrome, edge, and safari
  • Version latest as of poast

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions