fix(nextjs): fix app generation so the correct style module is added and installed (#2791)

This commit is contained in:
Jack Hsu 2020-04-01 23:55:28 -04:00 committed by GitHub
parent 3a8748a872
commit d71d799142
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,7 @@ const NEXT_SPECIFIC_STYLE_DEPENDENCIES = {
};
export function addStyleDependencies(options: NormalizedSchema): Rule {
const extraDependencies =
NEXT_SPECIFIC_STYLE_DEPENDENCIES[options.styledModule];
const extraDependencies = NEXT_SPECIFIC_STYLE_DEPENDENCIES[options.style];
return extraDependencies
? addDepsToPackageJson(
extraDependencies.dependencies,