Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency assert broken; webpack 2. #59

Open
bdjnk opened this issue May 3, 2017 · 2 comments
Open

Dependency assert broken; webpack 2. #59

bdjnk opened this issue May 3, 2017 · 2 comments

Comments

@bdjnk
Copy link

bdjnk commented May 3, 2017

I encountered Error Uncaught TypeError: util.inherits is not a function while upgrading to webpack 2.

I traced the cause to the dependency "inherits": "2.0.1" instead of "^2.0.1" or the like in util, which is used by assert, which is used by node-libs-browser.


My current hideous workaround is adding to package.json:

"dependencies": {
  "inherits": "^2.0.3"

and to webpack.config.js:

resolve: {
  alias: {
    inherits$: path.resolve(__dirname, 'node_modules/inherits')

I also filed a bug with util at Outdated dependency inherits causes trouble upstream; Webpack 2.

@jfirebaugh
Copy link

The root issue here is browserify/commonjs-assert#38.

@niksy
Copy link

niksy commented Nov 13, 2021

assert module has been update in updated version of node-libs-browser, so you can try that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants