Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

359
Views
compilation TypeError: Function has non-object prototype 'null' in instanceof check

macos webpack5 make a new plugin,use a hook thisCompilation and tap it. In the callback log the arameter 'compilation'. But show me a error "Function has non-object prototype 'null' in instanceof check"

class Plugin2 {
  apply( compiler ) {
    compiler.hooks.thisCompilation.tap( 'Plugin2', ( compilation ) => {
      console.log( 'compilation' ) // its worked
      console.log( compilation ) // Error

    } )
  }
}

module.exports = Plugin2

Error info:

[webpack-cli] TypeError: Function has non-object prototype 'null' in instanceof check
        at Function.[Symbol.hasInstance] (<anonymous>)
        at getConstructorName (internal/util/inspect.js:545:13)
        at formatRaw (internal/util/inspect.js:813:23)
        at formatValue (internal/util/inspect.js:803:10)
        at formatProperty (internal/util/inspect.js:1689:11)
        at formatRaw (internal/util/inspect.js:1017:9)
        at formatValue (internal/util/inspect.js:803:10)
        at formatProperty (internal/util/inspect.js:1689:11)
        at formatRaw (internal/util/inspect.js:1017:9)
        at formatValue (internal/util/inspect.js:803:10)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

update node to fix it.My node verssion is low https://github.com/nodejs/node/issues/35730

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!