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

TypeError: childNodes.forEach is not a function #799

Closed
jscheid opened this issue Jan 26, 2021 · 1 comment · Fixed by #802
Closed

TypeError: childNodes.forEach is not a function #799

jscheid opened this issue Jan 26, 2021 · 1 comment · Fixed by #802

Comments

@jscheid
Copy link

jscheid commented Jan 26, 2021

Metadata

Prettier 2.2.1, @prettier/plugin-ruby 1.5.0, default options.

Input

[
  ['先生小'], #
  ['小'],
]
[error] /tmp/foo.rb: TypeError: childNodes.forEach is not a function
[error]     at getSortedChildNodes (~/.config/yarn/global/node_modules/prettier/index.js:13931:14)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13947:22)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13963:7)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13963:7)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13963:7)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13963:7)
[error]     at decorateComment (~/.config/yarn/global/node_modules/prettier/index.js:13963:7)
[error]     at ~/.config/yarn/global/node_modules/prettier/index.js:14041:5
[error]     at Array.forEach (<anonymous>)
[error]     at Object.attach (~/.config/yarn/global/node_modules/prettier/index.js:14028:12)
@jscheid
Copy link
Author

jscheid commented Jan 26, 2021

$ ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

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 a pull request may close this issue.

1 participant