Skip to content

Fix js-yaml 5.x imports (no default export) - #551

Merged
cigamit merged 1 commit into
ctrliq:mainfrom
blaipr:fix/js-yaml-5-imports
Jun 28, 2026
Merged

Fix js-yaml 5.x imports (no default export)#551
cigamit merged 1 commit into
ctrliq:mainfrom
blaipr:fix/js-yaml-5-imports

Conversation

@blaipr

@blaipr blaipr commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • js-yaml 5.x (merged in Bump js-yaml from 4.2.0 to 5.2.0 #540) dropped its default export
  • All six import yaml from 'js-yaml' call sites break at build time with export 'default' was not found in 'js-yaml'
  • Changed to namespace imports (import * as yaml from 'js-yaml') in all six files

Files changed

  • awx/ui/src/util/yaml.js
  • awx/ui/src/util/prompt/mergeExtraVars.js
  • awx/ui/src/components/LaunchPrompt/steps/PreviewStep.js
  • awx/ui/src/components/Schedule/ScheduleAdd/ScheduleAdd.js
  • awx/ui/src/components/Schedule/ScheduleEdit/ScheduleEdit.js
  • awx/ui/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/NodeModals/NodeModal.js

Test plan

  • npm start compiles without js-yaml errors
  • Survey/schedule forms that use YAML extra vars still serialize/deserialize correctly

js-yaml 5.x dropped the default export. Change all six
`import yaml from 'js-yaml'` sites to namespace imports
(`import * as yaml from 'js-yaml'`) so load, dump, etc.
resolve correctly.
@blaipr blaipr mentioned this pull request Jun 28, 2026
4 tasks
@cigamit cigamit self-assigned this Jun 28, 2026
@cigamit
cigamit merged commit cb7113d into ctrliq:main Jun 28, 2026
sy-base pushed a commit to sy-base/ascender that referenced this pull request Jul 4, 2026
js-yaml 5.x dropped the default export. Change all six
`import yaml from 'js-yaml'` sites to namespace imports
(`import * as yaml from 'js-yaml'`) so load, dump, etc.
resolve correctly.

Co-authored-by: test <test@test.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants