[Solved] Parcel Package Error: Cannot read property ‘length‘ of undefined

An error is reported when parcel runs the project

solution (optional)
1. delete the. Cache folder in the project directory
2. Add – no cache parcel index.html -- no cache after the command

After clearing the cache that failed the first compilation, it can be used normally

Read More: