reactjs / React.NET

.NET library for JSX compilation and server-side rendering of React components
https://reactjs.net/
MIT License
2.3k stars 932 forks source link

Webpack template does not work on Chrome or Brave browser #1208

Closed technicallyty closed 4 years ago

technicallyty commented 4 years ago

Thanks for filing a bug! To save time, if you're having trouble using the library, please check off the items you have tried. If you are just asking a question, skip right to the bottom.

Please verify these steps before filing an issue, and check them off as you go

I'm using these library versions:

Runtime environment:

(Describe your issue here)

I was attempting to look into solutions ReactJS.NET were providing by example. I was interested in the webpack sample, but the code does not seem to produce a working output. I've tried running dotnet run after following the instructions on https://reactjs.net/bundling/webpack.html. After some amount of time, I am shown by the console to go to a localhost route, but when visiting this page, the browser returns This site can’t provide a secure connection .localhost sent an invalid response. This happens on both Brave and Chrome browser. This code runs on Firefox, however.

dustinsoftware commented 4 years ago

What error did you get? A screenshot would be helpful.

Yes the project is kept up to date...

On Tue, Sep 22, 2020 at 10:01 AM, technicallyty notifications@github.com wrote:

Thanks for filing a bug! To save time, if you're having trouble using the library, please check off the items you have tried. If you are just asking a question, skip right to the bottom. Please verify these steps before filing an issue, and check them off as you go

  • [x ] The relevant native JavascriptEngineSwitcher library packages are installed (such as JavaScriptEngineSwitcher.V8.Native.win-x64)
  • [ x] The VC++ 2017 runtime is installed
  • [ x] The value of SetUseReact and SetUseBabel is correct in ReactConfig.cs or Startup.cs
  • [x ] I've looked at the sample projects in this repo to verify that my app is configured correctly

I'm using these library versions:

  • ReactJS.NET:
  • JavaScriptEngineSwitcher:
  • react and react-dom: (N/A if using bundled react, or version number)
  • webpack: (N/A if using bundled react)
  • node: (N/A if using bundled react)

Runtime environment:

  • OS: (Mac, Windows, Linux flavor. Include 32-bit/64-bit and version) Windows 10
  • .NET Framework or .NET Core Version: .NET CORE 3

Steps to reproduce Download the react-webpack sample project and run.

(Describe your issue here)

I was attempting to look into solutions ReactJS.NET were providing by example. I was interested in the webpack sample, but the code does not run. I've built and ran the IIS server but to no avail. Is the project still being kept up to date?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reactjs/React.NET/issues/1208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHGCFT7PH5EPK7L3TRFANDSHDJ7FANCNFSM4RWASCQQ .

technicallyty commented 4 years ago

For some reason, whenever i ran my code, hsts was blocking the localhost connection. I had to go to this flag:

brave://net-internals/#hsts for brave users, or chrome://net-internals/#hsts for chrome users, and do this: image

I believe my program.cs or startup.cs was tampering with the browser.