-
Notifications
You must be signed in to change notification settings - Fork 206
Closed
Description
Steps to reproduce this:
- Using windows 10, latest version of VS code
- Installed the extension 'Web Template Studio 2.0'
- Launched to generate a new project in WTS, chose Angular + Node
- Chose 1 page of each of the 4 page types in Blank, Grid, List, Master detail (No edits done to any files)
- Now do npm install and then npm start, you should see the error I am seeing below
- version: v10.16.2 (node), 6.8.0 (npm)
File: C:\pkr\test\Ang\myApp\myApp\src\app\app-routing.module.ts
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{ path: '', redirectTo: '/blank', pathMatch: 'full' },
{
path: 'blank',
loadChildren: () => import('./app-shell/blank/blank.module').then(mod => mod.BlankModule)
},
{
path: 'master-detail',
loadChildren: () => import('./app-shell/master-detail/master-detail.module').then(mod => mod.MasterDetailModule)
},
{
path: 'grid',
loadChildren: () => import('./app-shell/grid/grid.module').then(mod => mod.GridModule)
},
{
path: 'list',
loadChildren: () => import('./app-shell/list/list.module').then(mod => mod.ListModule)
},
];
@NgModule({
imports: [
RouterModule.forRoot(routes)
],
exports: [RouterModule],
providers: []
})
export class AppRoutingModule { }
PS C:\pkr\test\Ang\myApp\myApp> npm start
> [email protected] start C:\pkr\test\Ang\myApp\myApp
> concurrently "yarn start-frontend || npm run start-frontend" "yarn start-backend || npm run start-backend"
[0] 'yarn' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'yarn' is not recognized as an internal or external command,
[1] operable program or batch file.
[1]
[1] > [email protected] start-backend C:\pkr\test\Ang\myApp\myApp
[1] > nodemon server/server.js
[1]
[0]
[0] > [email protected] start-frontend C:\pkr\test\Ang\myApp\myApp
[0] > ng serve --port=3000 --o --proxy-config proxy.config.json
[0]
[1] [nodemon] 1.19.1
[1] [nodemon] to restart at any time, enter `rs`
[1] [nodemon] watching: *.*
[1] [nodemon] starting `node server/server.js`
[0] ** Angular Live Development Server is listening on localhost:3000, open your browser on http://localhost:3000/ **
[0]
[0] Date: 2019-08-23T19:42:05.271Z
[0] Hash: 62be43686485ca8a5d34
[0] Time: 20879ms
[0] chunk {es2015-polyfills} es2015-polyfills.js, es2015-polyfills.js.map (es2015-polyfills) 285 kB [initial] [rendered]
[0] chunk {main} main.js, main.js.map (main) 93.9 kB [initial] [rendered]
[0] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 241 kB [initial] [rendered]
[0] chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
[0] chunk {styles} styles.js, styles.js.map (styles) 956 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.47 MB [initial] [rendered]
[0] ERROR in ./src/app/app-routing.module.ts 8:43
[0] Module parse failed: Unexpected token (8:43)
[0] You may need an appropriate loader to handle this file type.
[0] | {
[0] | path: 'blank',
[0] > loadChildren: function () { return import('./app-shell/blank/blank.module').then(function (mod) { return mod.BlankModule; }); }
[0] | },
[0] | {
[0]
[0] i 「wdm」: Failed to compile.
Metadata
Metadata
Assignees
Labels
No labels