Invalid configuration object. ... The provided value "<FULL_PATH>/dist" is not an absolute path! #915

Closed
opened 2025-08-09 17:18:09 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @skorunka on 3/22/2017

After upgrading webpack to 2.3.0 I get this error (twice, while running "webpack --config webpack.config.vendor.js"):

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration[0].output.path: The provided value "c:/FULL_PATH/dist" is not an absolute path!

I think it has something to do with this config section:

	const clientBundleConfig = merge(sharedConfig, {
		output: { path: path.join(__dirname, 'wwwroot', 'dist') },
		module: {
			rules: [
                { test: /\.css(\?|$)/, use: extractCSS.extract({ use: 'css-loader' }) }
			]
		},
		plugins: [
            extractCSS,
            new webpack.DllPlugin({
            	path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'),
            	name: '[name]_[hash]'
            })
		].concat(isDevBuild ? [] : [
            new webpack.optimize.UglifyJsPlugin()
		])
	});

All work with webpack 2.2.1. Any idea what to change?

*Originally created by @skorunka on 3/22/2017* After upgrading webpack to 2.3.0 I get this error (twice, while running "webpack --config webpack.config.vendor.js"): Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration[0].output.path: The provided value "c:/FULL_PATH/dist" is not an absolute path! I think it has something to do with this config section: ```js const clientBundleConfig = merge(sharedConfig, { output: { path: path.join(__dirname, 'wwwroot', 'dist') }, module: { rules: [ { test: /\.css(\?|$)/, use: extractCSS.extract({ use: 'css-loader' }) } ] }, plugins: [ extractCSS, new webpack.DllPlugin({ path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'), name: '[name]_[hash]' }) ].concat(isDevBuild ? [] : [ new webpack.optimize.UglifyJsPlugin() ]) }); ``` All work with webpack 2.2.1. Any idea what to change?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#915
No description provided.