grunt-contrib-sass: Path must be a string. Received undefined Use --force to continue.

Hi,

for some reason i get this error: Path must be a string. Received undefined Use --force to continue.

this is the grunt.js code:

sass: {
      dist: {
        options: {
          sourcemap: false
        },
        files: {
          'css/main.css' : 'scss/main.scss'
        }
      }
    },

Any idea hot to get rid of the error ?

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16

Most upvoted comments

I get the same… then I checked the path I’ve specified, and found a typo… fix the typo solved the issue.

Hi,

for some reason i get this error: Path must be a string. Received undefined Use --force to continue.

this is the grunt.js code:

sass: {
      dist: {
        options: {
          sourcemap: false
        },
        files: {
          'css/main.css' : 'scss/main.scss'
        }
      }
    },

Any idea hot to get rid of the error ?

It is 2024 and it still is an issue!!!