-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
node_modules/react-app-alias/src/index.js:199
baseUrl: conf.compilerOptions.baseUrl || '.',
^
The config fully extends from another, there is no compilerOptions
when using console.log to see:
{
extends: {
compilerOptions: {
module: 'esnext',
target: 'es5',
lib: [Array],
allowJs: false,
checkJs: false,
resolveJsonModule: true,
jsx: 'react-jsx',
declaration: false,
declarationMap: false,
sourceMap: false,
noEmit: true,
isolatedModules: true,
skipLibCheck: true,
strict: true,
noImplicitAny: false,
strictNullChecks: true,
strictFunctionTypes: true,
strictPropertyInitialization: false,
noImplicitThis: true,
alwaysStrict: true,
forceConsistentCasingInFileNames: true,
noImplicitReturns: true,
noFallthroughCasesInSwitch: true,
moduleResolution: 'node',
paths: [Object],
allowSyntheticDefaultImports: true,
esModuleInterop: true,
experimentalDecorators: false,
emitDecoratorMetadata: false
},
include: [ './**/*' ]
}
}
This can be fixed by using a condition?
let compilerOptions = conf.compilerOptions
if (!compilerOptions && conf.extends) {
compilerOptions = conf.extends.compilerOptions
}
let baseUrl
if (compilerOptions) {
baseUrl = compilerOptions.baseUrl
}
if (!baseUrl) {
baseUrl = '.'
}
Metadata
Metadata
Assignees
Labels
No labels