You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up my next.config.js file (webpack config) like this:
module.exports={webpack: (config,options)=>{config.module.rules.push({test: /\.(png|jpe?g)$/,loaders: [{loader: 'lqip-loader',options: {path: '/public',// your image going to be in media folder in the output dirname: '[name].[ext]',// you can use [hash].[ext] too if you wish,base64: true,// default: true, gives the base64 encoded imagepalette: true// default: false, gives the dominant colours palette}}]})returnconfig},}
So when I start the server I'm always getting this error:
Error: Invalid settings specified for the resizer.
at Resize.initialize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:25:16)
at new Resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:17:10)
at Jimp.resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\index.js:1762:22)
at C:\Users\Jorudi\Code\NodeJSBlog\node_modules\lqip\index.js:30:28
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I have like +800 images...so this error shows up +800 times and then the server stucks.
The text was updated successfully, but these errors were encountered:
Hi!
So basically I'm using the loader with Next.js.
I set up my next.config.js file (webpack config) like this:
So when I start the server I'm always getting this error:
Error: Invalid settings specified for the resizer.
at Resize.initialize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:25:16)
at new Resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\resize.js:17:10)
at Jimp.resize (C:\Users\Jorudi\Code\NodeJSBlog\node_modules\jimp\index.js:1762:22)
at C:\Users\Jorudi\Code\NodeJSBlog\node_modules\lqip\index.js:30:28
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I have like +800 images...so this error shows up +800 times and then the server stucks.
The text was updated successfully, but these errors were encountered: