tommedema / serverless-mono-example

Example repo on how to use yarn workspaces together with the serverless framework.
124 stars 10 forks source link

Adding sls-offline breaks build #10

Open bsliu17 opened 4 years ago

bsliu17 commented 4 years ago

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?

ajhool commented 4 years ago

Is there any more error information?

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