Blazor-Color-Picker icon indicating copy to clipboard operation
Blazor-Color-Picker copied to clipboard

Uncaught SyntaxError: Unexpected token 'export'

Open wstaelens opened this issue 1 year ago • 0 comments

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)

wstaelens avatar Mar 22 '23 14:03 wstaelens