workerize-loader icon indicating copy to clipboard operation
workerize-loader copied to clipboard

Workerize loader runs out of memory

Open TeoTN opened this issue 5 years ago • 5 comments

Workerize loader runs out of memory in my custom webpack config (unfortunately, I can't share it), and I see similar issue to this one.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

when running webpack --progress, it doesn't stop on any particular file, it's usually around 67% though.

workerize-loader is in version 1.3.0 webpack is 4.43.0

Would you be able to suggest how to debug this issue? I was trying to compare my config with CRA, and the only major difference is that CRA is running TypeScript in fork, I wonder if this may be an important difference.

TeoTN avatar Aug 12 '20 14:08 TeoTN

Sorry for the late reply. In order to know what's going on, I'd need to know if you're enabling Workerize-loader using inline loader syntax, or via module.rules mappings in your Webpack configuration.

developit avatar Jan 09 '21 01:01 developit

Sorry for the late reply. In order to know what's going on, I'd need to know if you're enabling Workerize-loader using inline loader syntax, or via module.rules mappings in your Webpack configuration.

I have the same problem with using an inline loader

globsecure avatar Mar 11 '21 14:03 globsecure

Sorry for the late reply. In order to know what's going on, I'd need to know if you're enabling Workerize-loader using inline loader syntax, or via module.rules mappings in your Webpack configuration.

It was using module.rules mappings in webpack config. I don't work on that project anymore though (don't have access), so won't be able to provide much more details, unfortunately

TeoTN avatar Mar 17 '21 23:03 TeoTN

I had wroten here an error but its not the same, Im goint to create a new issue

kilofafeure avatar Dec 02 '21 12:12 kilofafeure

having same issue with workerize-loader:2.0.2 on webpack 5 via module.rules config. It seems working fine with inline loader syntax though.

rake7h avatar Jun 04 '22 06:06 rake7h