score:1
Accepted answer
Looks like the path concatenation misses a slash, try
var HTMLWebpackPluginConfig = new HTMLWebpackPlugin({
template: __dirname + '/app/index.html',
...
The probably better way would be, however, to use the path
utility module (https://nodejs.org/api/path.html) like this:
const path = require('path')
...
template: path.join(__dirname, 'app', 'index.html')
...
This makes path concatenation less error-prone and is OS independent (backslash vs slash on windows vs *nix based os)
Source: stackoverflow.com
Related Query
- Error in Entry Module not found - in Webpack Config file
- Webpack Entry module not found (by tutorial)
- Webpack stopped working after refactoring: ERROR in Entry module not found
- Webpack + React + TypeScript: Module not found ... in ... node_modules/react/
- How to create React App including Web3 using create-react-app? I am getting Module not found Error. BREAKING CHANGE: webpack < 5 used
- Webpack 5 images not found when importing to a module
- Module Not Found - Webpack Dev Server
- Webpack ERROR Module not found
- module not found - webpack ts-loader @material-ui
- How to fix this error : " Module not found :can't resolve popper.js "
- "module not found : Error: Cannot resolve module 'react/lib/ReactMount' "
- React unable to import component -- module not found
- Entry module not found: Error: Can't resolve './src/index.js'
- How to fix Next.js Vercel deployment module not found error
- cannot evaluate module 'react-native-maps' : Configuration with name 'default' not found
- Using Webpack with React-router bundle.js Not Found
- Webpack module federation is not working with eager shared libs
- React Webpack - Error: Module is not a loader (must have normal or pitch function)
- Module not found Error when deployed on Heroku
- Typescript Module not found Can't resolve
- Material-UI components not found during TypeScript module resolution
- Webpack Dev Server (webpack-dev-server) Hot Module Replacement (HMR) Not Working
- Module not found Error: Can't resolve 'history' in @types/history
- Module not found when import .jsx file
- Firebase-Admin, importing it to react application throws Module not found error
- [Flow]react-native: Required module not found
- Cannot resolve module "firebase" from 'firebase.js' : Firebase could not be found within the project
- Module not found (Typescript and baseUrl option)
- React Webpack Dev Server main.js not found
- Module not found error using Yarn 2 to link React components
More Query from same tag
- Automatically attach a header from frontend app to external http request?
- How to make IntelliJ IDEA resolve webpack requires out of node_modules directory?
- Update state on react not getting right value
- Format Numberfield in percentages
- Can I change state in 100 components in one click?
- Can't Edit and Update properties with form Reactjs and MongoDB
- MUI5 not working with jest - SyntaxError: Cannot use import statement outside a module
- How to handle form state with Formik and Redux-Saga
- React: prevent variables from re-rendering
- Why is my Axios fetch giving CORS errors?
- My socket io is working but when I add new data, it's not real time, ReactJS, Express, Mongoose
- Reactjs app building successfully when deploying with Heroku but still getting Application Error
- How to give optional property to function type which is having props?
- Pass CSS variable as prop to the react component
- Aws ec2 with lb does not return 101 on websocket
- Conditionally set checkbox state based on variable in ReactJS
- react-chartjs-2 not updating graph when state updates
- Importing functional Component in class component
- Unable to run a function inside another function: Cannot read property 'test' of undefined / Cannot read property 'setState' of undefined
- React Redux load data from firebase only once
- cannot read value of null in reactJs with linkedState
- ag-grid react table not displaying?
- The difference between creating an instance of a functional component (then calling render) and 'mounting a component directly'
- How to spread styles object passed down to a styled component as a prop?
- Asp.Net Core API CORS policy error (+308 status code)
- Ant Design : getFieldDecorator()
- Dynamically nesting React.js components
- React/Redux changing values in module (not in component)
- How to test onClick functionality which is present in parent component (arrow function)?
- React Navigation, How do I test a the path of a Navlink?