Tns-platform-decorations error on build


#1

hey everyone I’m trying to use the tns-platform-declarations and followed the instructions [here] (http://docs.nativescript.org/angular/core-concepts/accessing-native-apis-with-javascript.html) in the nativescript docs, but when I try to run my project I get this on my terminal:


node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(11,26): error TS2304: Cannot find name 'Node'.

node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(12,21): error TS2304: Cannot find name 'Node'.
node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(13,21): error TS2304: Cannot find name 'Node'.
node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(14,16): error TS2304: Cannot find name 'Node'.

node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(21,23): error TS2304: Cannot find name 'Element'.
node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(23,12): error TS2304: Cannot find name 'Node'.
node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(24,21): error TS2304: Cannot find name 'Node'.

node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(25,23): error TS2304: Cannot find name 'Node'.

node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(26,42): error TS2304: Cannot find name 'MouseEvent'.
...

can anyone help me out with this please? thanks in advance


#2

+1, I’m having this same issue.