Skip to content

Error when packager is yarn #369

@bazaglia

Description

@bazaglia

This is a Bug Report

Description

When using nodeExternals in webpack config, deployment throws an error. The issue is only reproduced with includeModules: true + packager: 'yarn'.

 Error --------------------------------------------------
 
  Command failed: yarn install --frozen-lockfile --non-interactive
error An unexpected error occurred: "Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.".

It may help because the deployment only include production packages, which causes a difference in yarn lockfile.

Additional Data

  • Serverless-Webpack: 5.1.1
  • Webpack version: 4.5.0
  • Serverless Framework: 1.26.1
  • webpack-node-externals: 1.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions