Open darkstagetienda opened 6 years ago
Where did you see ng server? This is not an Angular CLI setup. Every example has a README file on GitHub. According to the README you have to run npm start. We don't also have the Angular 4.3.6. The Angular dependencies in the package.json are defined as 4.3.x https://github.com/ova2/angular-development-with-primeng/blob/master/chapter9/crud-datatable/package.json
Hello , I am new to Prime Ng, referring to the book and I am facing the same problem as mentioned while trying examples in chapter 5 / datatables. How do I get this executed through Angular CLI ? Please advise
I tried instructions in READ.ME file as well and ended up with below error Failed to compile.
./src/app/app.module.ts [48, 57]: missing whitespace
@ ./src/main.jit.ts 4:0-45 @ multi (webpack)-dev-server/client?http://localhost:3000 ./main.jit.ts
message error: Unable to find "@angular/cli" in devDependencies.
Please take the following steps to avoid issues: "npm install --save-dev @angular/cli@latest"
@angular/compiler-cli@4.3.6 requires typescript@'>=2.1.0 <2.4.0' but 2.4.2 was found instead. Using this version can result in undefined behaviour and difficult to debug problems.
Please run the following command to install a compatible version of TypeScript.
To disable this warning run "ng set warnings.typescriptMismatch=false".
Cannot read property 'config' of null TypeError: Cannot read property 'config' of null at Class.run (C:\Users\miguel\AppData\Roaming\npm\node_modules\@angular\cli\tasks\serve.js:51:63) at check_port_1.checkPort.then.port (C:\Users\miguel\AppData\Roaming\npm\node_modules\@angular\cli\commands\serve.js:123:26) at
at process._tickCallback (internal/process/next_tick.js:188:7)
D:\datos\bajados\angular-development-with-primeng-master\angular-development-with-primeng-master\chapter9\crud-datatable>