OpaqueToken Error
See original GitHub issueHi there, I want to implement JWT for my mobile application. But I got an error I could not catch. I get an error like this when I want to run my mobile app on the browser;
Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0__angular_core__.OpaqueToken is not a constructor
at Object.<anonymous> (storage.js:230)
at __webpack_require__ (bootstrap 1eb62cb7ba312b8c5f2e:54)
at Object.defineProperty.value (vendor.js:60850)
at __webpack_require__ (bootstrap 1eb62cb7ba312b8c5f2e:54)
at Object.159 (main.js:56)
at __webpack_require__ (bootstrap 1eb62cb7ba312b8c5f2e:54)
at Object.161 (main.js:201)
at __webpack_require__ (bootstrap 1eb62cb7ba312b8c5f2e:54)
at Object.700 (main.js:950)
at __webpack_require__ (bootstrap 1eb62cb7ba312b8c5f2e:54)
If I try to run it on my phone I get an error like;
[20:10:38] typescript: .../node_modules/@ionic/storage/es2015/storage.d.ts, line: 2
Module
'"/node_modules/@angular/core/core"' has
no exported member 'OpaqueToken'.
L1: import { OpaqueToken } from '@angular/core';
L3: * Storage is an easy way to store key/value pairs and JSON objects.
Error: Failed to transpile program
at new BuildError (..\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
at ..\node_modules\@ionic\app-scripts\dist\transpile.js:159:20
at new Promise (<anonymous>)
at transpileWorker (..\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
at Object.transpile (..\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
at ..\node_modules\@ionic\app-scripts\dist\build.js:109:82
at <anonymous>
cli packages: (..\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.6
Cordova Platforms : android 7.0.0 browser 5.0.3
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.3
npm : 5.6.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Why error in Angular 5 as : has no exported member ...
The OpaqueToken got removed. You have to use the InjectionToken instead. I am facing the same problem. At the Moment the "best" solution...
Read more >How to solve import { OpaqueToken } from '@angular/core' Error
Please help me I am getting error. [ng] Error: node_modules/@ionic/storage/es2015/storage.d.ts:2:10 - error TS2305: Module '"@angular/core"' ...
Read more >OAuth 2.0 Resource Server Opaque Token :: Spring Security
Given an Opaque Token, Resource Server: Queries the provided introspection endpoint by using the provided credentials and the token. Inspects the response for ......
Read more >PH25547: OIDC INCORRECT BEHAVIOR IF OPAQUE ... - IBM
Error description. When the OpenID Connect TAI is configured with useJwtFromRequest=ifPresent, and an opaque token is sent in the Authorization header of an ......
Read more >OpaqueToken - ts - API - Angular
Using an OpaqueToken is preferable to using an Object as tokens because it provides better error messages. Annotations. @Injectable(). Constructor.
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
@danbucholtz any updates ?
@d-das u got any solution ?
Is anybody working on this? A quick workaround was downgrading (
npm i @ionic/storage@2.1.1
), but I’m not sure if this is ok. Basic googling brought about a bunch of similar errors from flex-layout, but I’m not sure if this is relevant.