MSAL Angular Question

David Wong 10 Reputation points

Hello all,

I am following this guide to the letter, I have cut and copied every line of code exactly. But I ended up with an error... Does anyone know where I went wrong? I just want to get this example working before I go and try to get this to suite my needs for the project. Thanks all in advance!

src/app/app-routing.module.ts:23:5 - error TS2322: Type '"enabled" | "disabled"' is not assignable to type 'InitialNavigation | undefined'.
  Type '"enabled"' is not assignable to type 'InitialNavigation | undefined'.

23     initialNavigation: !isIframe ? 'enabled' : 'disabled' // Don't perform initial navigation in iframes
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
864 questions
{count} vote