Error: Has no exported member 'PLATFORM_ID'. and isPlatformServer'
See original GitHub issueI 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?glad you got it working. i think upgrading to 4 is a win-win.