question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Has no exported member 'PLATFORM_ID'. and isPlatformServer'

See original GitHub issue

I am getting this error: `ERROR in C:/…/node_modules/ngx-uploader/src/ngx-uploader/directives/ng-file-drop.directive.ts (1,81): Module ‘“C:/…/node_modules/@angular/core/index”’ has no exported member ‘PLATFORM_ID’.

ERROR in C:/…/node_modules/ngx-uploader/src/ngx-uploader/directives/ng-file-drop.directive.ts (2,10): Module ‘“C:/…/node_modules/@angular/common/index”’ has no exported member ‘isPlatformServer’.`

Anyone has the solution?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jkuricommented, Jun 1, 2017

hi @Waldspecht, problem is because @angular/common does not export PLATFORM_ID which is exported by Angular 4 and forward versions. I am using that for checking if this is used by server-side prerendering and currently this cannot work on Angular versions 2.x.x. Did you try to upgrade your project’s Angular version?

0reactions
jkuricommented, Jun 2, 2017

glad you got it working. i think upgrading to 4 is a win-win.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting "no exported member" errors when ...
13' , created a new angular app, reinstalled all dependencies including primeNg, add all your code from current project, recompile and the error...
Read more >
has no exported member 'ɵNgClassImpl' · Issue #1064
Hi there, I have issues on build: ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305: Module ...
Read more >
ngx-device-detector
An Angular 6+ powered AOT compatible device detector that helps to identify browser, os and other useful information regarding the device using the...
Read more >
Errors: has no exported member | Angular - EJ 2 Forums
When I run "ng serve", I'm getting tons of errors like this: Error: node_modules/@syncfusion/ej2-angular-buttons/src/switch/switch.module.d.ts: ...
Read more >
angular/common
The CommonModule exports are re-exported by BrowserModule , which is included automatically in the root AppModule when you create a new app with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found