When I try to build a Loopback 4 application with npm run build on Ubuntu 16.04, npm runs lb-tsc for 3 seconds and then just stops without printing any message. After it stops a tsconfig.tsbuildinfo file is generated but the dist folder is not.
My tsconfig.json is like the following:
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "@loopback/build/config/tsconfig.common.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}
I also tried running npm run build:watch, npm run clean, and running all of these with sudo and still no luck. Any idea what's causing this?
Turns out the build files are actually generated but lb4 cli produces settings.json in .vscode folder which configures VS code to exclude the dist folder from project workspace by default.