question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

resolver.ensureHook is not a function

See original GitHub issue

I’m getting this error on webpack: 4.8.3 and directory-named-webpack-plugin: 4.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
shaketbabycommented, May 24, 2018

Are you able to post your webpack config file? Just the part where you setup this plugin. Do you set it up as a plugin for webpack? I suspect that’s the case from the stack tract provided although I could be wrong. This is a plugin of webpack’s resolver, so it needs to be set up as a resolver plugin

  resolve: {
    plugins: [
      new DirectoryNamedWebpackPlugin()
    ]
  }
1reaction
shaketbabycommented, May 27, 2018

I was going to say try that, but glad to hear things are working now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: resolver.ensureHook is not a function · Issue #2
Hi, @arcanis I followed your instructions and made some progress but i am still facing issues. You can check my webpack.config.dev.js ...
Read more >
TypeError: resolver.resolve is not a function - node.js
In visual studio code I can't find resolver.resolve anywhere in my code and even cloning projects straight from github it always displays this ......
Read more >
React, how to fix the TypeError: resolver is not a function error
Turned out the solution was very simple. So, make sure you have a default export and the error will go away.
Read more >
Resolvers - webpack
Resolvers are created using the enhanced-resolve package. The Resolver class extends the tapable class and uses tapable to provide a few hooks.
Read more >
node_modules/enhanced-resolve · master - Gitlab
A function which decides whether a request should be cached or not. An object is passed to the function with path and request...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found