Search code examples
parceljs

Parcel error: cannot read property 'walk' of null


When importing HTML files from another HTML file using the Parcel.js builder, I get a mysterious exception:

cannot read property 'walk' of null

What does this signify?


Solution

  • This can happen if the imported HTML file is empty, or has a malformed <html> tag.

    Check the imported file is populated correctly.