-
Notifications
You must be signed in to change notification settings - Fork 161
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
Xhr.js ReferenceError: $ is not defined #191
Comments
Did you |
Used Tried npm install from the appauth's root folder with the package.json, same error with 'node_modules' not recognized Using Windows. |
I just encountered this issue, and resolved it by installing
The surprising thing here is that (also: maybe |
You can just use it with the fetch API like so: import {
AuthorizationServiceConfiguration,
FetchRequestor,
} from "@openid/appauth";
await AuthorizationServiceConfiguration.fetchFromIssuer(
openIdConnectUrl,
new FetchRequestor()
); |
Thanks @sidharthramesh Good grief, that should be the default! |
Yes. I think this should be the default too |
This is the first time I've encountered jQuery in probably 8 years! What a bizarre default. You can also set this for const tokenHandler = new BaseTokenRequestHandler(new FetchRequestor()); |
Newb here, do I just add " import * as $ from 'jquery' " into xhr.ts and then rebuild it using "npm run-script build-app" ?
That's what I tried but no luck, 'node_modules' not recognized as an internal or external command. Not sure how to configure the scripts or resolve this issue otherwise :/
(Have already taken a look at the other issues and your responses)
Thank you :)
The text was updated successfully, but these errors were encountered: