diff --git a/addons/docs/src/preset.ts b/addons/docs/src/preset.ts index ba24891b7bfc..c41a4752e6d7 100644 --- a/addons/docs/src/preset.ts +++ b/addons/docs/src/preset.ts @@ -49,7 +49,7 @@ function withFrameworkExtensions(basePreset: Preset, mapper: FrameworkPresetMapp module.exports = withFrameworkExtensions(commonPreset, framework => { try { - return require.resolve(`./frameworks/${framework}/preset`); + return require.resolve(`./frameworks/${framework}/preset`) as string; } catch (err) { // there is no custom config for the user's framework, do nothing return null; diff --git a/lib/addons/tsconfig.json b/lib/addons/tsconfig.json index 64eed74f8ea8..9398dc348c74 100644 --- a/lib/addons/tsconfig.json +++ b/lib/addons/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "rootDir": "./src" + "rootDir": "./src", + "types": ["webpack-env"] }, "include": [ "src/**/*" diff --git a/lib/channels/tsconfig.json b/lib/channels/tsconfig.json index 64eed74f8ea8..fe128055ea4e 100644 --- a/lib/channels/tsconfig.json +++ b/lib/channels/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "rootDir": "./src" + "rootDir": "./src", + "types": ["node"] }, "include": [ "src/**/*" diff --git a/lib/client-logger/tsconfig.json b/lib/client-logger/tsconfig.json index 4894223ce827..e2c88041df6c 100644 --- a/lib/client-logger/tsconfig.json +++ b/lib/client-logger/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "rootDir": "./src" + "rootDir": "./src", + "types": ["node"] }, "include": ["src/**/*"], "exclude": ["src/**/*.test.ts"] diff --git a/tsconfig.json b/tsconfig.json index a2454a3af84c..0f4719660e9c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "target": "es5", - "types": ["node", "jest"], + "types": ["jest"], "lib": ["es2017", "dom"] }, "exclude": [