You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting emitAssertForImportAttributes no longer works in Node.js 22 with latest swc #2117
Node.js 22 removed import asserts and now only has import attributes. Setting emitAssertForImportAttributes to false in dist/transpilers/swc.js fixes the issue, but ofc, this would break the existing users, so not sure how to approach this!? A config option..? A breaking change?
Activity
vocafeuvre commentedon Jul 30, 2024
Can confirm this behavior too. I'm using AdonisJS, which uses SWC under the hood to execute TS files.
My workaround was to disable SWC, at the cost of waiting a couple extra seconds for my script to finish executing.
mohd-akram commentedon Feb 4, 2025
Running into this too. That line should be removed.
@cspotcode @blakeembrey