1.0.0 and 1.0.0-beta10, Fix for ReferenceError: URL is not defined
See original GitHub issue1.0.0-beta10 produces ReferenceError: URL is not defined.
Here is the proposed fix which seems to work for me in: jwt.interceptor.ts
const URL = require('url');
// inside isWhitelistedDomain method
isWhitelistedDomain(request: HttpRequest<any>): boolean {
// const requestUrl = new URL(request.url);
const requestUrl = URL.parse(request.url, false, true);
...
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Uncaught ReferenceError: url is not defined - Stack Overflow
I am new to java script, just started learning about it a week or so ago, and browser is telling me "Uncaught ReferenceError:...
Read more >Uncaught ReferenceError: slicewp is not defined
Hello! We believe that this plugin has this error due to WP Rocket but no matter what scripts we exclude from WP Rocket...
Read more >ReferenceError - JavaScript - MDN Web Docs
The ReferenceError object represents an error when a variable that doesn't exist (or hasn't yet been initialized) in the current scope is ...
Read more >How to Fix '$ is not defined' Errors in JavaScript - Webtips
Learn what causes 'Uncaught ReferenceError: $ is not defined' errors in JavaScript, and how you can fix them in various ways.
Read more >ReferenceError: url is not defined [closed]
Looks like someone has inserted some javascript in you head element. At see ~ line 110 of your dom. <script> function popupwindow(w, ...
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
PR submitted.
@chenkie I was hoping this fix would make it into 1.0.0. Can you please prioritize this (it’s a one-liner). Thanks.