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

Error: Cannot find module 'array.prototype.flatmap' from 2.27.0 #2663

Closed
zloirock opened this issue Jan 12, 2023 · 5 comments · Fixed by #2664
Closed

Error: Cannot find module 'array.prototype.flatmap' from 2.27.0 #2663

zloirock opened this issue Jan 12, 2023 · 5 comments · Fixed by #2664

Comments

@zloirock
Copy link
Contributor

It's in dev dependencies but used in library code.

@cristobal
Copy link
Contributor

Came here for the same reason, using xo and after the latest release it's complaining about missing dependency on array.prototype.flatmap from the eslint-plugin-import/lib/rules/export.js file.

Here's on of the change v2.26.0...v2.27.0
Screenshot 2023-01-12 at 01 05 35

Seems it has been included as prod dependency in several of the rules now.

@ljharb
Copy link
Member

ljharb commented Jan 12, 2023

Thanks, will be fixed soon.

@shazron
Copy link

shazron commented Jan 12, 2023

Thanks Jordan, this is one of the fears that I have for my own published modules, that's why I have an eslint rule enabled node/no-unpublished-require 😅

@titanism
Copy link

Please close #2665 once done @ljharb it's a dup.

Temp fix here #2665 (comment)

Thanks many ❤️ 🙏 🙏 🙏 🙇

@ljharb
Copy link
Member

ljharb commented Jan 12, 2023

v2.27.1 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

5 participants