-
Bug
-
Resolution: Fixed
-
Medium
We have a projet in node with webpack.
If we run pipeline commands directly from the latest docker images of node:9-alpine, everything is Ok.
In bitbucket, the pipeline fails.
The attached archive contains code to reproduce.
The relevant part of the error message is:
ERROR in ./src/index.js Module parse failed: /opt/atlassian/pipelines/agent/build/src/index.js Unexpected token (9:10) You may need an appropriate loader to handle this file type. | * Webpack fails with this declaration in pipelines | */ | getProp = () => this.props; | | setProp(props) { error An unexpected error occurred: "Command failed. Exit code: 2 Command: sh Arguments: -c ./node_modules/.bin/webpack Directory: /opt/atlassian/pipelines/agent/build