Skip to content

fix: Load Ashby embed v2 as ES module#1044

Merged
felixwidjaja merged 2 commits intomainfrom
job-detail-2
Mar 12, 2026
Merged

fix: Load Ashby embed v2 as ES module#1044
felixwidjaja merged 2 commits intomainfrom
job-detail-2

Conversation

@felixwidjaja
Copy link
Collaborator

The embed?version=2 script uses ES module syntax internally, causing an "Unexpected token 'export'" crash when loaded as a classic script with defer.

Switching to type="module" fixes the crash. Modules are deferred by default so the defer attribute is redundant and removed.

felixwidjaja and others added 2 commits March 12, 2026 19:34
The embed?version=2 script uses ES module syntax internally,
causing an "Unexpected token 'export'" crash when loaded as a
classic script with defer.

Switching to type="module" fixes the crash. Modules are deferred
by default so the defer attribute is redundant and removed.

Co-Authored-By: Claude <claude@anthropic.com>
@felixwidjaja felixwidjaja merged commit 2666f2d into main Mar 12, 2026
5 checks passed
@felixwidjaja felixwidjaja deleted the job-detail-2 branch March 12, 2026 12:45
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

Successfully merging this pull request may close these issues.

1 participant