-
The VSCode development environment doesn't have built-in support for 'URLSearchParams' etc. so when I add 'openid-client' (v6) to my package deps and install, then try 'npm run compile' after importing from 'openid-client', I get many errors like the following: node_modules/openid-client/build/index.d.ts:857:43- error TS2304: Cannot find name 'URL' including many from 'node_modules/oauth4webapi' as well. I tried installing and importing 'url-search-params-polyfill' to no avail. Is there a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: I got it to work by adding "dom" to my tsconfig.json compilerOptions |
Beta Was this translation helpful? Give feedback.
Update: I got it to work by adding "dom" to my tsconfig.json compilerOptions