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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unexpected property: transpilePackages

benlutz opened this issue · comments

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?

@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
?

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

I'm using 13!

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