ERROR in ./~/angular2-google-place/src/app/app.component.ts
Module parse failed: C:\Users\x\Documents\Visual Studio 2017\Projects\x\x.Web\node_modules\angular2-google-place\src\app\app.component.ts Unexpected character '@' (3:0)
You may need an appropriate loader to handle this file type.
| import {Component} from '@angular/core';
|
| @Component({
| selector: 'app-root',
| templateUrl: './app.component.html',
@ ./~/angular2-google-place/src/app/index.ts 1:0-32
@ ./~/angular2-google-place/index.ts
@ ./ClientApp/app/app.module.shared.ts
@ ./ClientApp/app/app.module.client.ts
@ ./ClientApp/boot-client.ts
@ multi event-source-polyfill webpack-hot-middleware/client?path=%2F__webpack_hmr ./ClientApp/boot-client.ts
ERROR in ./~/angular2-google-place/src/app/app.module.ts
Module parse failed: C:\Users\x\Documents\Visual Studio 2017\Projects\x\x.Web\node_modules\angular2-google-place\src\app\app.module.ts Unexpected character '@' (9:0)
You may need an appropriate loader to handle this file type.
| import {GoogleplaceDirective} from "./directives/google-place.directive";
|
| @NgModule({
| declarations: [
| AppComponent, GoogleplaceDirective
@ ./~/angular2-google-place/src/app/index.ts 2:0-29
@ ./~/angular2-google-place/index.ts
@ ./ClientApp/app/app.module.shared.ts
@ ./ClientApp/app/app.module.client.ts
@ ./ClientApp/boot-client.ts
@ multi event-source-polyfill webpack-hot-middleware/client?path=%2F__webpack_hmr ./ClientApp/boot-client.ts
HI,
I have this error, do you know how to fix it?
here is my package.json:
Thanks