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.

Webpack error with autoit.js: Maximum call stack size exceeded

See original GitHub issue

I’m not sure if this is a highlight.js problem or webpack, but when webpack attempts to bundle highlight.js version 8.7, it chokes on autoit.js:

ERROR in ../~/highlight.js/lib/languages/autoit.js
Module build failed: Maximum call stack size exceeded
 @ ../~/highlight.js/lib/index.js 12:32-61

Had to pin to ~8.6.0 to get around this. Using node 0.10.25.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
martinjirkucommented, Oct 19, 2015

I resolved it in webpack config file by adding to module.noParse option new RegExp, e.g. like this:

{
    //...other config options
    module: {
       noParse: [/autoit.js/],
       //...other config options
    },
}
1reaction
isagalaevcommented, May 8, 2016

I looked more closely into AutoIt and found out it is simply too big anyway. I reduced the list based on the official docs of the languages which reduced the size of the whole library by about 20% and as a side effect fixed this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[webpack]: npm ERR! Maximum call stack size exceeded
While doing npm i -D webpack I am getting the following error. npm ERR! Maximum call stack size exceeded npm ERR! A complete...
Read more >
webpack/webpack - Gitter
Anyone getting "Uncaught RangeError: Maximum call stack size exceeded" after a hot ... There is a bug in Chrome when using source Maps...
Read more >
Webpack, Sass – Maximum call stack size exceeded - iTecNote
I'm using Webpack for my JS application. For the styles I'm using Sass. My application is pretty big, so I'm using a lot...
Read more >
How Buffer Overflow Attacks Work
How To Run Javascript From Python - Detailed Guide? ... Uncaught RangeError: Maximum call stack size exceeded owl carousel · matplotlib circle outline....
Read more >
JavaScript license information
d3-selection/src/selection/call.js ... @sentry/webpack-plugin/src/sentry-webpack.module.js ... core-js/internals/error-stack-installable.js ...
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