serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

serverless package fails when service is using local module as dependency

Open iabadjiev opened this issue 6 years ago • 0 comments

To help you chase after the issue did prepared for you a minimalistic serverless service that is using local module as dependency.

In my case, on macOS, using npm 6.10.2 and node 8.10, once I:

  • clone the repo: git clone [email protected]:TumbaSolutions/serverless-plugin-typescript-package-issue.git
  • run npm i
  • run npm run sls package

The error will be: ENOENT: no such file or directory, stat '/.../serverless-plugin-typescript-package-issue/.build/node_modules/serverless-plugin-typescript-package-issue-local-module'

Looking inside '.build/node_modules', there is invalid relative symbolic link 'serverless-plugin-typescript-package-issue-local-module'.

iabadjiev avatar Jul 25 '19 12:07 iabadjiev