I started getting this message when I added (and imported) a large amount of client side javascript files stored the Public folder.
Anyone ever seen it? Any work arounds?
I started getting this message when I added (and imported) a large amount of client side javascript files stored the Public folder.
Anyone ever seen it? Any work arounds?
HI Gaspar,
Can you specify the page url where you see this message?
I can not share the exact site due to NDA restrictions out here, but we can talk on private email regarding that.
Also I think I have found the problem: I was trying to use lodas npm package, and when I import the full package with import _ from lodash;
is when I get the error. Specifically, I am loading the package on both a backend page and a frontend page.
When I changed that to only import the specific methods I use in lodash, the error is not there anbymore. i.e. import {unionBy} from lodash;
Hope it helps! Let me know if we can connect in private email!
Hi Gaspar, the I faced this error on a different scenario - I was trying to recreate Firebase dependencies locally but they wouldn’t build because of the size of the packages.
With lodash, since it’s a very heavy package, it’s always a good practice to import only the methods used in your code.
Thanks for your answer!
Yes, it seems to be related with the size of the packages. However, I sporadically spotted the error even importing only the used methods (only two from lodash).