Closed DmitryEfimenko closed 2 years ago
You're probably running on an old node version โ which exactly?
Dmitry A. Efimenko @.***> schrieb am Mi., 27. Okt. 2021, 19:10:
Got an error in the pipeline:
An unhandled exception occurred: Cannot create property 'currentNode' on string 'TypeError: options.groups.flatMap is not a function
233 | at Object.miniorganize (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/organize.js:26:35) 234 | at transformNode (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/index.js:54:33) 235 | at _a.forEach (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/index.js:62:85) 236 | at Array.forEach (
) 237 | at transformNode (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/index.js:62:66) 238 | at transformRootNode (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/index.js:48:5) 239 | at Object.parse (/codebuild/output/src716443509/src/node_modules/prettier-plugin-organize-attributes/lib/index.js:30:40) 240 | at Object.parse (/codebuild/output/src716443509/src/node_modules/prettier/index.js:13625:19) 241 | at coreFormat (/codebuild/output/src716443509/src/node_modules/prettier/index.js:14899:14) 242 | at format (/codebuild/output/src716443509/src/node_modules/prettier/index.js:15131:14)' Unfortunately I can't provide the html for the file it was linting. Hopefully the issue can be solved without it!
โ You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NiklasPor/prettier-plugin-organize-attributes/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEZNU67X4ECPBAGDDWQMT3UJAW77ANCNFSM5G23OLSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
This happen in CI/CD pipeline. It's currently set up to run on Node 10. Would that be the issue?
.flatMap is added in Node 11.
Node 10 is not maintained anymore. I suggest you upgrade to atleast 12 โ or even better 16 ๐
https://nodejs.org/en/about/releases/
Dmitry A. Efimenko @.***> schrieb am Mi., 27. Okt. 2021, 19:14:
This happen in CI/CD pipeline. It's currently set up to run on Node 10. Would that be the issue?
โ You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NiklasPor/prettier-plugin-organize-attributes/issues/2#issuecomment-953138013, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEZNU44JHXR7JBRT6ST5NTUJAXQJANCNFSM5G23OLSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thanks for a quick feedback! ๐ I'll go ahead and verify this fix. Once I make sure the issue is solved I'll close this issue
Sounds good, thanks!
Dmitry A. Efimenko @.***> schrieb am Mi., 27. Okt. 2021, 19:20:
Thanks for a quick feedback! ๐ I'll go ahead and verify this fix. Once I make sure the issue is solved I'll close this issue
โ You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NiklasPor/prettier-plugin-organize-attributes/issues/2#issuecomment-953143280, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEZNUYBI4UMNWQQDBRZZ2DUJAYFTANCNFSM5G23OLSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Got an error in the pipeline:
Unfortunately I can't provide the html for the file it was linting. Hopefully the issue can be solved without it!