Niels-IO / next-image-export-optimizer

Use Next.js advanced <Image/> component with the static export functionality. Optimizes all static images in an additional step after the Next.js static export.
413 stars 51 forks source link

unexpected property: transpilePackages #197

Closed benlutz closed 2 months ago

benlutz commented 5 months ago

Hey there,

I installed the packages as described in the README, and so far everything is working as expected. Starting up the dev server, however, I get this warning:

Invalid next.config.js options detected: 
  - The root value has an unexpected property, transpilePackages, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).

Is this expected?

el-j commented 5 months ago

@benlutz what version of nextjs do you use? before 13.0.0? if so and u cannot upgrade u may use this: https://www.npmjs.com/package/next-transpile-modules ?

Niels-IO commented 4 months ago

@benlutz, can you confirm on which version of Next.js you are?

benlutz commented 4 months ago

I'm using 13!

Niels-IO commented 4 months ago

What happens when you remove the property "transpilePackages" from the next.config.js?