serverless-mono-example icon indicating copy to clipboard operation
serverless-mono-example copied to clipboard

Adding sls-offline breaks build

Open bsliu17 opened this issue 7 years ago • 1 comments

Hi, love your work with this monrepo for lerna + serverless.

Inside sls-random, i've added serverless-offline as devDep and ran yarn run build and got this error:

1 import { fetchRandomNumber as fetchNumber } from '@org/random'
                                                   ~~~~~~~~~~~~~
Found 1 error.

I can't figure out why this occurs by simply adding sls-offline. Any idea why this is happening?

bsliu17 avatar Nov 17 '19 02:11 bsliu17

Is there any more error information?

My guess is that you have not added @org/random as a dependency

ajhool avatar Nov 17 '19 02:11 ajhool