Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# errors #2

Closed
Mulli opened this issue Oct 23, 2018 · 2 comments
Closed

# errors #2

Mulli opened this issue Oct 23, 2018 · 2 comments

Comments

@Mulli
Copy link

Mulli commented Oct 23, 2018

Hi
Followed the article instructions
Including upgrade to Electron 3.0.0 etc...
But fail
`[11:20:07] Starting compilation in watch mode...

flow.ts:118:21 - error TS2554: Expected 1-3 arguments, but got 6.

118 const request = new AuthorizationRequest(
~~~~~~~~~~~~~~~~~~~~~~~~~
119 clientId,
~~~~~~~~~~~~~~~
...
124 extras
~~~~~~~~~~~~
125 );
~~~~~

flow.ts:141:19 - error TS2554: Expected 1 arguments, but got 5.

141 let request = new TokenRequest(
~~~~~~~~~~~~~~~~~
142 clientId,
~~~~~~~~~~~~~~~
...
146 undefined
~~~~~~~~~~~~~~~
147 );
~~~~~

flow.ts:182:19 - error TS2554: Expected 1 arguments, but got 5.

182 let request = new TokenRequest(
~~~~~~~~~~~~~~~~~
183 clientId,
~~~~~~~~~~~~~~~
...
187 this.refreshToken
~~~~~~~~~~~~~~~~~~~~~~~
188 );
~~~~~

[11:20:13] Found 3 errors. Watching for file changes.

Terminate batch job (Y/N)? y
PS C:\dev\Electron\okta-electron-example> npm i
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN appauth-electron@0.1.0 No repository field.

added 171 packages from 106 contributors and audited 1157 packages in 26.583s
found 0 vulnerabilities
[11:25:00] Starting compilation in watch mode...

flow.ts:118:21 - error TS2554: Expected 1-3 arguments, but got 6.

118 const request = new AuthorizationRequest(
~~~~~~~~~~~~~~~~~~~~~~~~~
119 clientId,
~~~~~~~~~~~~~~~
...
124 extras
~~~~~~~~~~~~
125 );
~~~~~

flow.ts:141:19 - error TS2554: Expected 1 arguments, but got 5.

141 let request = new TokenRequest(
~~~~~~~~~~~~~~~~~
142 clientId,
~~~~~~~~~~~~~~~
...
146 undefined
~~~~~~~~~~~~~~~
147 );
~~~~~

flow.ts:182:19 - error TS2554: Expected 1 arguments, but got 5.

182 let request = new TokenRequest(
~~~~~~~~~~~~~~~~~
183 clientId,
~~~~~~~~~~~~~~~
...
187 this.refreshToken
~~~~~~~~~~~~~~~~~~~~~~~
188 );
~~~~~

[11:25:07] Found 3 errors. Watching for file changes.`

@mraible
Copy link

mraible commented Oct 24, 2018

Have you tried comparing your code to the code in this repo? Does it happen when you clone the repo and run it from there? Instructions are in this project's README.

@mraible
Copy link

mraible commented Nov 16, 2018

@Mulli Please see #3 for code changes required to fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants