Open ShaunEdiger opened 4 years ago
I have gotten into looking on how to support both version 10 and backward compatable for version 9. I will get back to you shortly on when and how the schematics will be fixed 😄 If you would like to collaborate let me know!
baseWorkspaceTsConfig is false as default
releasing in v0.5.3
Describe the bug Generated serverless project refers to non-existent
tsconfig.json
. It appears a recent commit renamed the file totsconfig.base.json
.To Reproduce Steps to reproduce the behavior:
npx nx g @flowaccount/nx-serverless:api-serverless --name=bug-repro --provider=aws --directory=
npx yarn add @nrwl/node && npx nx g @nrwl/node:library "@someorg/constants"
handler.ts
from the serverless project created prior and add the statementimport {foo} from '@someorg/constants';
Expected behavior The IDE should find the lib. The tsconfig in the serverless project should contain a valid reference to the root tsconfig.
Check which provider is affected: [x] AWS [] Azure (not tested, but likely) [] Google Cloud Platform (not tested, but likely)
Check which framework is affected: [] Angular (not tested) [] Nodejs (not tested) [x] Serverless [] Lambda (not tested) [] Infrastructure as a code (not tested)
Additional context This commit in the nx project seems to be the culprit.
As a workaround, I created a
tsconfig.json
that extendstsconfig.base.json
.