diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index c198178a..6d42ac04 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -14,7 +14,6 @@ "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", - "types": ["node", "react", "react-dom", "jest", "@babel/core", "webpack", "url"], "typeRoots": ["./node_modules/@types"], "allowImportingTsExtensions": true }, diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index b0246507..c696a4e4 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -1,13 +1,11 @@ import path from 'path'; -import { fileURLToPath } from 'url'; import { Configuration } from 'webpack'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import { version } from './package.json'; -// Setup __dirname equivalent for TypeScript -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); +// Declare __dirname for TypeScript +declare const __dirname: string; const config: Configuration = { entry: './src/index.js',