While hosting my app on Heroku and running git push heroku main
, I encountered the following error:
panicked at 'the global thread pool has not been initialized.: threadpool builderror { kind: ioerror(error { kind: unsupported, message: "operation not supported on this platform" }) }'
How can I resolve this issue?
Language: NextJS Hosting: Heroku
Here are my package.json, complete error log, and next.config.js files:
package.json
{
"name": "invoice-website",
"version": "0.1.0",
// Include rest of the package.json content for better clarity
}
Full ERROR Log
// Include full error log details here
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};
module.exports = nextConfig;
I have tried using both the latest node
version and the old node@16
version, but neither worked.