next.js: Using Inferno Example - TypeError

Using latest Inferno example renders and appears to work, but a TypeError is thrown in the console with each page request:

next.js?e673db6:37 TypeError: instance.componentWillMount is not a function
    at createClassComponentInstance (inferno.node.js?19343be:2039)
    at hydrateComponent (inferno.node.js?19343be:2218)
    at hydrate (inferno.node.js?19343be:2348)
    at hydrateComponent (inferno.node.js?19343be:2227)
    at hydrate (inferno.node.js?19343be:2348)
    at hydrateComponent (inferno.node.js?19343be:2227)
    at hydrate (inferno.node.js?19343be:2348)
    at hydrateRoot (inferno.node.js?19343be:2369)
    at Object.render (inferno.node.js?19343be:2441)
    at doRender (next.js?e673db6:119)

I could only see 1 closed issue in Inferno mentioning that error string, and it wasn’t clear if it was relevant.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 2
  • Comments: 15 (10 by maintainers)

Most upvoted comments

Woah, excellent find @timneutkens

@jazzido the issue turned out to be a bit bigger than I initially thought. @lukeed is going to take a look at it sometime.

hi @timneutkens journey is not over yet, using infoerno 1.1.2: TypeError: instance.getChildContext is not a function at createClassComponentInstance (inferno.node.js?28ef546:2088) at hydrateComponent (inferno.node.js?28ef546:2266) at hydrate (inferno.node.js?28ef546:2396) at hydrateComponent (inferno.node.js?28ef546:2275) at hydrate (inferno.node.js?28ef546:2396) at hydrateComponent (inferno.node.js?28ef546:2275) at hydrate (inferno.node.js?28ef546:2396) at hydrateRoot (inferno.node.js?28ef546:2417) at Object.render (inferno.node.js?28ef546:2489) at doRender (next.js?0ca01b5:119)