I am trying to set up deployment for my angular 9 project using AWS Amplify. This is my .YML file
version: 0.1
frontend:
phases:
preBuild:
commands:
- nvm use $VERSION_NODE_12
- npm install
- npm install -g @angular/cli
build:
commands:
- nvm use $VERSION_NODE_12
- ng build app-call --prod
artifacts:
baseDirectory: dist/apps/app-call
files:
- '**/*'
cache:
paths:
- node_modules/**/*
But I am getting a build error:
2020-04-08T13:57:57.706Z [WARNING]: ERROR in libs/call/src/classes/index.ts:1:18 - error TS2307: Cannot find module './Util'.
1 import Util from './Util';
Locally the solution builds fine. Looks like I am missing something. Any idea what?