I am in process migrating Angular 5 project to Angular 6.
While starting application by
npm start
getting the below error
In your file 'tsconfig.json', you make maybe
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
},
"include": ["node_modules/angular-bootstrap-md/**/*.ts", "src/**/*.ts"],
}
You can replace
"include": ["node_modules/angular-bootstrap-md/**/*.ts", "src/**/*.ts"],
to
"include": ["src/**/*.ts","node_modules/angular-bootstrap-md/**/*.ts" ],
Moreover, in your file 'angular.json', I delete '../' in front of node_modules in "styles" and "scripts".
And I copied lines of the "scripts" in the "scripts" in the category "test"
"test": {
...
"styles": [
"src/styles.css"
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"./assets/css/font-icon.css",
"node_modules/font-awesome/css/font-awesome.css"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/popper.js/dist/umd/popper.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"
],
...