Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Dec 20, 2022
1 parent 9ade628 commit b9d47ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/next/server/config.ts
Expand Up @@ -605,6 +605,16 @@ function assignDefaults(dir: string, userConfig: { [key: string]: any }) {
result.output = 'standalone'
}

if (
result.experimental &&
'transpilePackages' in (result.experimental as any)
) {
Log.warn(
`\`transpilePackages\` has been moved out of \`experimental\`. Please update your ${configFileName} file accordingly.`
)
result.transpilePackages = (result.experimental as any).transpilePackages
}

if (
result.experimental?.outputFileTracingRoot &&
!isAbsolute(result.experimental.outputFileTracingRoot)
Expand Down

0 comments on commit b9d47ae

Please sign in to comment.