I am creating a Microsoft Office Project Professional 2016 add-in (not VSTO, but the new Office add-ins model). I have made a basic web app, using ASP.NET Core with Aurelia, Webpack and TypeScript (not referencing any office-js apis yet), and deployed the add-in manifest. This works, and I can load the add-in in a side pane within Project.
The problem is when I add a router to my app. The app silently fails when hosted in Project, and is not rendered in the page. By attaching the Windows 10 F12 Developer Tools and viewing the console I can see that the Aurelia app is started, and configureRouter()
is called in app.ts. Something seems to fail after that point, but I can't find where to put a breakpoint to catch any more information. If I try to hook into the component lifecycle, bind
is called but not attached
.
The web app loads correctly in Chrome, Firefox, Edge and IE 11, with and without the router.