ConditionalProxyMiddleware throws when publicPath is absolute #1540

Closed
opened 2025-08-09 17:20:32 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @tobiasr on 6/30/2016

When setting the { output: { publicPath: 'http://localhost:5000" }} in webpack.config it results in:

System.ArgumentException: The path in 'value' must start with '/'. Parameter name: value at Microsoft.AspNetCore.Http.PathString..ctor(String value) at Microsoft.AspNetCore.Http.PathString.op_Implicit(String s) at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__5.MoveNext()

This is needed as a workaround to gets custom fonts working in dev-environment. See: http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts/34133809#34133809

*Originally created by @tobiasr on 6/30/2016* When setting the { output: { publicPath: 'http://localhost:5000" }} in webpack.config it results in: ` System.ArgumentException: The path in 'value' must start with '/'. Parameter name: value at Microsoft.AspNetCore.Http.PathString..ctor(String value) at Microsoft.AspNetCore.Http.PathString.op_Implicit(String s) at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__5.MoveNext() ` This is needed as a workaround to gets custom fonts working in dev-environment. See: http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts/34133809#34133809
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1540
No description provided.