Issues integrating with JavaScriptServices
Bug Report
- office-ui-fabric-react 4.31.0
Priorities and help requested (not applicable if asking question):
Requested priority: Blocking
Products/sites affected: JavaScriptServices: debugging experience and server side rendering
Describe the issue:
Create a new project using the reactredux template as described in https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/
Optionally in boot-client.tsx add import 'core-js/es6'; for IE11 support
Add office-ui-fabric-react 4.31.0
In package.json update:
"@types/react": "15.0.38",
"@types/react-dom": "15.5.1",
"@types/react-redux": "4.4.47",
"@types/react-router-dom": "4.0.6",
"@types/react-router-redux": "5.0.3",
"redux": "3.7.2",
"typescript": "2.4.2",
In Home.tsx set a breakpoint in the line return <div>, and run the project.
You still have proper debugging.
Now add an Office UI button to Home.tsx.
You will now receive an error caused by SSR.
Edit Views\Home\Index.cshtml and remove asp-prerender-module="ClientApp/dist/main-server"
Things will now work, but the breakpoint won't hit anymore. Removing the button from Home.tsx restored the debugging experience
Actual behavior:
SSR workaround is not working, no debugging
Expected behavior:
SSR workaround for JavaScriptServices, debugging continues to work
Debugging doesn't work in IE11, but it does work in Chrome. Since Chrome also has nifty React and Redux development plugins I won't mind using this workaround. So this would only leave open the challenge of getting SSR working...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!
This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?