Skip to content

Doesn't work with Context API #46

Open
@stevefan1999-personal

Description

@stevefan1999-personal
{ '$$typeof': Symbol(react.element),
  type: // notice here
   { '$$typeof': Symbol(react.context),
     _calculateChangedBits: null,
     _defaultValue:
      { color: undefined,
        size: undefined,
        className: undefined,
        style: undefined,
        attr: undefined },
     _currentValue:
      { color: undefined,
        size: undefined,
        className: undefined,
        style: undefined,
        attr: undefined },
     _currentValue2:
      { color: undefined,
        size: undefined,
        className: undefined,
        style: undefined,
        attr: undefined },
     _changedBits: 0,
     _changedBits2: 0,
     Provider: { '$$typeof': Symbol(react.provider), _context: [Circular] },
     Consumer: [Circular],
     _currentRenderer: null,
     _currentRenderer2: null },
  key: null,
  ref: null,
  props: { children: [Function] },
  _owner: null,
  _store: {} }
TypeError: element.type.toLowerCase is not a function
    at ReactDOMServerRenderer.renderDOM (<REDACTED>\node_modules\react-component-caching\development.js:2998:32)
    at ReactDOMServerRenderer.render (<REDACTED>\node_modules\react-component-caching\development.js:2987:25)
    at ReactDOMServerRenderer.read (<REDACTED>\node_modules\react-component-caching\development.js:2845:25)
    at renderToString (<REDACTED>\node_modules\react-component-caching\development.js:3309:35)
    at _callee$ (<REDACTED>\build\webpack:\src\server.tsx:83:1)
    at tryCatch (<REDACTED>\node_modules\babel-runtime\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (<REDACTED>\node_modules\babel-runtime\node_modules\regenerator-runtime\runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (<REDACTED>\node_modules\babel-runtime\node_modules\regenerator-runtime\runtime.js:114:21)
    at step (<REDACTED>\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at <REDACTED>\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13

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