My Webpack building and running normally on the local, but when I run my deployment in netlify, it says compiled successfully sits there for 30 mins saying it was building and then build fails to produce the following error. Please help me with this issue.
7:52:42 PM: - Compiler.js:678 compilation.seal.err
7:52:42 PM: [repo]/[webpack]/lib/Compiler.js:678:31
7:52:42 PM: - Hook.js:154 AsyncSeriesHook.lazyCompileHook
7:52:42 PM: [repo]/[tapable]/lib/Hook.js:154:20
7:52:42 PM: - Compilation.js:1423 hooks.optimizeAssets.callAsync.err
7:52:42 PM: [repo]/[webpack]/lib/Compilation.js:1423:35
7:52:42 PM: Child html-webpack-plugin for “index.html”:
7:52:42 PM: Asset Size Chunks Chunk Names
7:52:42 PM: c7cb6cfeb3bdf5cd0752.hot-update.json 44 bytes [emitted] [immutable] [hmr]
7:52:42 PM: + 1 hidden asset
7:52:42 PM: Entrypoint undefined = index.html
7:52:42 PM: [./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 177 bytes {0} [built] [failed] [1 error]
7:52:42 PM: ERROR in ./src/index.html (./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html)
7:52:42 PM: Module build failed (from ./node_modules/html-webpack-plugin/lib/loader.js):
7:52:42 PM: Error: ENOENT: no such file or directory, open ‘/opt/build/repo/src/index.html’
7:52:42 PM: 「wdm」: Failed to compile.