Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

e-commerce Yarn Build failing with error Cannot read properties of undefined (reading 'has')

(0) ShareShare
ReportReport
Posted on by

We have recently seen an issue where yarn build is failing with error Cannot read properties of undefined (reading 'has'). This is caused because of a external dependency "glob" that released a breaking change, To mitigate this issue, please add a resolution for glob version 7.2.0 in the package.json file of your deployable package

pastedimage1652600339900v1.png

Update:

Glob has released a newer package 7.2.3 which fixes the issue introduced by 7.2.2. With this change, you no longer need to add the resolution for 7.2.0

  • huijij Profile Picture
    19,811 on at
    RE: e-commerce Yarn Build failing with error Cannot read properties of undefined (reading 'has')

    Thanks for your sharing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans