loopback-sdk-builder icon indicating copy to clipboard operation
loopback-sdk-builder copied to clipboard

Error when running npm run build:sdk script

Open elviocb opened this issue 7 years ago • 0 comments

What type of issue are you creating?

  • [X] Bug
  • [ ] Enhancement
  • [ ] Question

What version of this module are you using?

  • [ ] 2.0.10 (Stable)
  • [ ] 2.1.0-rc.n (2.1 Release Candidate n)
  • [X] Other

Write other if any: 2.1.2

Please add a description for your issue: Error when running npm run script

After installing the sdk package in my loopback server packages. When I run "npm run sdk:build" I got the following error message:

lb-sdk server/server.js ../easy-stats-app/src/app/shared/sdk

module.js:557 throw err; ^

Error: Cannot find module '../index' at Function.Module._resolveFilename (module.js:555:15) at Function.Module._load (module.js:482:25) at Module.require (module.js:604:17) at require (internal/module.js:11:18) at Object. (/Users/elviocavalcante/Dropbox/Projects/mbr-apps/mbr-pos-server/node_modules/.bin/lb-sdk:15:17)

elviocb avatar Feb 02 '18 15:02 elviocb