l1f7 / surface

:construction: Building blocks & guidelines for front-end at Lift (deprecated: unmaintained)
2 stars 1 forks source link

WebpackOptionsValidationError: Invalid configuration object. #10

Closed hyshka closed 7 years ago

hyshka commented 7 years ago

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.output.path: The provided value "website/mycompass_marketing/static/js" is not an absolute path!

# in gulpfile.js/config.js change
const sitePath = path.join('.', 'website', 'mycompass_marketing', 'static');

# to
const sitePath = path.resolve('.', 'website', 'mycompass_marketing', 'static');

# alternatively in webpack.config.js change
output: {
  path: path.join(config.build.js),

# to
  path: path.resolve(config.build.js),

Not sure which is better.