-
Notifications
You must be signed in to change notification settings - Fork 923
Closed
Description
Hi!,
I'm using ReactJS.NET 2.1 in my latest project, everything locally works great, but I have a problem after publishing to an Azure WebSite.
I have a few React components, and I'm using React-bootstrap.js, everything in ASP.NET 5. That is how my Startup.cs looks like when it comes to configuring React for server-side rendering:
// Add ReactJS.NET to the request pipeline.
app.UseReact(config =>
{
config
.AddScriptWithoutTransform("~/js/react-bootstrap.min.js")
.AddScript("~/app/navigation.jsx")
.AddScript("~/app/home.jsx")
.AddScript("~/app/accounts/accountUtils.js")
.AddScript("~/app/accounts/myAccounts.jsx");
});
Works great locally on IIS Express, but after publishing on Azure WebSites I'm getting following exception on application stratup:
Error while loading "~/js/react-bootstrap.min.js": Object.create: implementation only accepts one parameter.
Metadata
Metadata
Assignees
Labels
No labels