syncweek-react-aad / react-aad

A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
MIT License
344 stars 94 forks source link

Started getting TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string #224

Closed Rahulkishanm closed 4 years ago

Rahulkishanm commented 4 years ago

Purpose

Started getting TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string

Does this introduce a breaking change?

[ ] Yes
[ x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone https://github.com/Rahulkishanm/react-aad
cd samples
cd react-javascript
npm install
npm start

What to Check

Earlier without an upgrade, of react script we were having the issue mentioned above. Now after an upgrade of react script, we solved this issue

douglas-woods commented 4 years ago

This issue also applies to the typescript sample app. The same fix should be done.