Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Unexpected token 'export' #11

Open
wstaelens opened this issue Mar 22, 2023 · 0 comments
Open

Uncaught SyntaxError: Unexpected token 'export' #11

wstaelens opened this issue Mar 22, 2023 · 0 comments

Comments

@wstaelens
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant