Blazor-Color-Picker
Blazor-Color-Picker copied to clipboard
Uncaught SyntaxError: Unexpected token 'export'
In Azure I've seen several exceptions Uncaught SyntaxError: Unexpected token 'export'
coming from:
lineNumber 1
errorSrc window.onerror@https://foo.com/_content/BlazorColorPicker/colorpicker.js:1:1
url https://foo.com/_content/BlazorColorPicker/colorpicker.js
columnNumber 1
message: Uncaught SyntaxError: Unexpected token 'export'
typeName SyntaxError
when I browse to https://foo.com/_content/BlazorColorPicker/colorpicker.js
I see:
export function SetFocusTo2 (element) {
if (element instanceof HTMLElement) {
element.focus();
}
}
I guess the export
keyword of the function is giving this issue.
.net 7 blazor server BlazorColorPicker (2.3.0)