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.

export 'x' was not found in @angular/core

See original GitHub issue

Hi,

I started getting this warnings today after I updated the package to version 1.3.7

WARNING in ./node_modules/ngx-device-detector/fesm5/ngx-device-detector.js 693:63-81 "export 'ɵɵdefineInjectable' was not found in '@angular/core'

WARNING in ./node_modules/ngx-device-detector/fesm5/ngx-device-detector.js 693:169-177 "export 'ɵɵinject' was not found in '@angular/core'

and then this error

core.js:15724 ERROR TypeError: Object(...) is not a function

My @angular/core version is 7.2.12.

Can you please help?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:19

github_iconTop GitHub Comments

5reactions
gigglegirlcommented, Sep 11, 2020

I am again facing this issue with “ngx-device-detector”: “^1.4.2”, package.json file looks something like below :

image

2reactions
AhsanAyazcommented, Nov 21, 2020

@biswas123 v2.0.0 is not for Angular v7 apps. Please downgrade to 1.3.9

Read more comments on GitHub >

github_iconTop Results From Across the Web

export 'ɵɵinject' was not found in '@angular/core'
The solution is to ensure all your packages are of the same versions. Check Package.json file to find ...
Read more >
export 'ɵɵinject' was not found in '@angular/core' since v8.0.0 ...
It's just an empty Angular 7 project generated with ng new , then npm install the lib and just inject the service of...
Read more >
NG0301: Export not found! - Angular
Ensure that all dependencies are properly imported and declared in your NgModules. For example, if the export not found is ngForm , we...
Read more >
from non ecmascript module (only default export is available ...
I'm getting errors stating that angular/core/core has no exported member 'ɵɵFactoryDeclaration' while I ran ng serve command. The error I am getting is....
Read more >
Export default was not found Error in JavaScript | bobbyhadz
The "export default was not found" error occurs when we try to import as default from a module that doesn't have a default...
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