diff --git a/dev-packages/browser-integration-tests/tsconfig.json b/dev-packages/browser-integration-tests/tsconfig.json index 6c252887a736..2587befcce14 100644 --- a/dev-packages/browser-integration-tests/tsconfig.json +++ b/dev-packages/browser-integration-tests/tsconfig.json @@ -5,7 +5,8 @@ "lib": ["dom", "es2019"], "moduleResolution": "node", "noEmit": true, - "strict": true + "strict": true, + "allowSyntheticDefaultImports": true }, "include": ["**/*.ts"], "exclude": ["node_modules"] diff --git a/packages/nextjs/src/config/loaders/types.ts b/packages/nextjs/src/config/loaders/types.ts index 8e03a57ade36..c4facd590844 100644 --- a/packages/nextjs/src/config/loaders/types.ts +++ b/packages/nextjs/src/config/loaders/types.ts @@ -1,4 +1,4 @@ -import type webpack from 'webpack'; +import type * as webpack from 'webpack'; export type LoaderThis = { /** diff --git a/packages/node/src/proxy/index.ts b/packages/node/src/proxy/index.ts index 4129a9f65cd7..15c700ed3e62 100644 --- a/packages/node/src/proxy/index.ts +++ b/packages/node/src/proxy/index.ts @@ -28,7 +28,6 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility */ /* eslint-disable @typescript-eslint/no-unused-vars */ -import assert from 'assert'; import type * as http from 'http'; import type { OutgoingHttpHeaders } from 'http'; import * as net from 'net'; @@ -190,8 +189,6 @@ export class HttpsProxyAgent extends Agent { // Need to wait for the "socket" event to re-play the "data" events. req.once('socket', (s: net.Socket) => { debug('Replaying proxy buffer for failed request'); - assert(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at // this point the HTTP module machinery has been hooked up for // the user. diff --git a/tsconfig.json b/tsconfig.json index d09ccd93c76f..fb4ced9fa77d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "extends": "./packages/typescript/tsconfig.json", "compilerOptions": { - "allowSyntheticDefaultImports": true, "declaration": false, "declarationMap": false, "skipLibCheck": true,