reactjs / React.NET

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

app.UseReact Could not load file or assembly 'react.js, Culture=neutral, PublicKeyToken=null'. #1305

Open cmargroff opened 1 year ago

cmargroff commented 1 year 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:

Steps to reproduce


Running the app results in a runtime error that react.js cannot be found at:


      app.UseReact(config => {
        config
        .SetLoadReact(true)
        .SetLoadBabel(true)
        .AddScript("~/Components/Home/Login.jsx")
        .SetJsonSerializerSettings(new JsonSerializerSettings
        {
          StringEscapeHandling = StringEscapeHandling.EscapeHtml,
          ContractResolver = new CamelCasePropertyNamesContractResolver()
        });
      });```