dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

Error: Path must be a string. Received undefined using Node 6.9 #109

Closed AlexZeitler closed 6 years ago

AlexZeitler commented 7 years ago

Using this grunt-processhtml config in my Gruntfile:

processhtml: {
      dist: {
        files: {
          'dest/index.html': ['index.html']
        }
      }
    }

Verbose output:

Running "processhtml:dist" (processhtml) task
Verifying property processhtml.dist exists in config...OK
Files: index.html -> dest/index.html
Options: process=false, data={}, templateSettings=null, includeBase=null, commentMarker="build", strip=false, recursive=false, customBlockTypes=[], environment="dist"
Warning: Path must be a string. Received undefined Use --force to continue.

I get this error using Node.js 6.9.5, grunt 1.0.1 and grunt-processhtml 0.4.1: Error: Path must be a string. Received undefined. Using Node 4.2.3 everything works fine.

dciccale commented 7 years ago

could you provide a full working example of the grunt file you are testing with? So I can replicate the issue as well.

Thanks

dciccale commented 6 years ago

No more data provided. Re-open if needed.