Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BC since Webpack5: The devtool option is more strict #8501

Merged
merged 1 commit into from Nov 16, 2020

Conversation

webda2l
Copy link
Contributor

@webda2l webda2l commented Nov 13, 2020

Tiny fix of error:

Serverless: Bundling with Webpack...
 
  Validation Error ---------------------------------------
 
  ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
   - configuration.devtool should match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$".
     BREAKING CHANGE since webpack 5: The devtool option is more strict.
     Please strictly follow the order of the keywords in the pattern.

See aligent/serverless-aws-nodejs-service-template#52 too

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @webda2l !

@medikoo medikoo merged commit cc103f1 into serverless:master Nov 16, 2020
@webda2l webda2l deleted the patch-2 branch November 16, 2020 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants