You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • It's possible that other users were using an older, smaller version of async?

    Also, maybe try putting var async = require('async') as the first line in the file.

    Problem is, when you upload a module, it actually needs 3x the amount of memory to load it in. First it comes it via the input buffer, then the string has to get parsed, then finally loaded into memory. It means that realistically your 21k needs 63k of memory to load in (even if it only uses 21k once loaded), which is more than the Pico has available.

    If you desperately need it, I'd consider stripping out async functions you're not going to use. Personally I'd try to avoid using it though - I think the time it saves will be wasted again trying to fit the rest of your code into the remaining memory.

About

Avatar for Gordon @Gordon started