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
When using any version of node 22.x and greater CyberChef errors because of a breaking change to Node starting with version 22. Node switched to using import attributes and assert needs to be swapped to the with syntax.
file:///srv/src/core/Recipe.mjs:7
import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
^^^^^^
SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:338:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:106:18)
at #translate (node:internal/modules/esm/loader:470:12)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:517:27)
The text was updated successfully, but these errors were encountered:
Summary
When using any version of node 22.x and greater CyberChef errors because of a breaking change to Node starting with version 22. Node switched to using import attributes and
assert
needs to be swapped to thewith
syntax.https://nodejs.org/docs/latest-v22.x/api/esm.html#import-attributes
Example Output
The text was updated successfully, but these errors were encountered: