Encountering an issue while setting up webpack for CSS Modules...
An error message is appearing stating that the configuration object is invalid. It seems that the output path specified as "build" is not an absolute path, which is required.
Below are extracts from my webpack.config.js and package.json files:
webpack.config.js
module.exports = {
entry: './src',
output: {
path: 'build',
filename: 'bundle.js',
},
};
package.json
{
"name": "css-modules",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack && open index.html"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"webpack": "^4.16.1",
"webpack-cli": "^3.0.8"
}
}
Any assistance on resolving this issue would be greatly appreciated.
Thank you!