Failed to compile : ./node_modules/macaddress/lib/windows.js in Angular 5

前端 未结 2 1914
时光取名叫无心
时光取名叫无心 2020-12-04 03:51

I am new to Angular 5 ,as per my business need I need to get the user machine\'s mac address.For that I tried to implement the following...

2条回答
  •  爱一瞬间的悲伤
    2020-12-04 04:26

    This is an example of adding a module in app module file app.module.ts for example 'BrowserModule'

    import { NgModule }      from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    import { AppComponent }  from './app.component';
    
    @NgModule({
     imports:      [ BrowserModule ],
     declarations: [ AppComponent ],
     bootstrap:    [ AppComponent ]
    })
    export class AppModule { }
    

提交回复
热议问题