Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with SCSS Files: Cannot read property 'match' of undefined #6

Closed
renet opened this issue Mar 30, 2016 · 4 comments
Closed

Using with SCSS Files: Cannot read property 'match' of undefined #6

renet opened this issue Mar 30, 2016 · 4 comments

Comments

@renet
Copy link

renet commented Mar 30, 2016

Hi, I'm using the following configuration in my Grundfile.js:

kss: {//Living Styleguide (HTML-/CSS-Documentation)
    options: {
        verbose: true,
        template: 'library/styleguide/template',
        css: 'css/my-base/my-base.css'
    },
    dist: {
        src: ['scss/custom'],
        dest: 'library/styleguide/generated'
    }
}

Sorrily I'm getting this error when I run grunt kss:

...
 - 11: inline markup
 - 12: inline markup
...Generating style guide pages:
 - section 1 [Farben]
Fatal error: Cannot read property 'match' of undefined

In /scss/custom there's a bunch of folders containing .scss files with dependencies between some of the .scss files. Can you please help me with this? Thanks in advance! :)

@chrisfrancis27
Copy link

Same problem for me, but with Stylus .styl files.

  1. I dug up an old project, tried to npm install and got an error that the version I was on (0.3) has been removed (why would you ever need to remove legacy package versions?)
  2. Updated to the latest version, tried to build and got a kss-node usage prompt with error that option includeType doesn't exist
  3. Removed that line from my Grunt config and built again - this time Cannot read property 'match' of undefined

@JohnAlbin
Copy link
Contributor

dug up an old project, tried to npm install and got an error that the version I was on (0.3) has been removed (why would you ever need to remove legacy package versions?)

I KNOW!

The previous maintainer of this namespace completely unpublished everything. I don't know why they did that; it's such an extremely bad idea.

Anyway, they gave me the namespace when I asked if I could use it to revive the project.

I tried to recover as much of the Git history as possible, but the original GitHub version was also deleted, so I grabbed what I could from old forks. The last version I could find before I did my rewrite was v0.2.6. :-\ So I don't see how I can recover 0.3 for you. And annoyingly, the previous maintainers pushed 1.0, 2,0 and 3.0 before deleting everything, which is why my version had to be named 4.0.0. :-p

Updated to the latest version, tried to build and got a kss-node usage prompt with error that option includeType doesn't exist

The newest grunt-kss passes all the options onto kss-node, so you can find all the options at: https://www.npmjs.com/package/kss It looks like you want the mask option.

@renet Can you try removing the template: 'library/styleguide/template', line so that you are using the default template? Does the error still happen?

@renet
Copy link
Author

renet commented Apr 7, 2016

This worked, but the template is required to correctly apply the styles to the examples. So our template is buggy. Can you please tell me how I can debug it to find out where the problem lays? grunt kss -d doesn't give me any helpful information.

@renet
Copy link
Author

renet commented Apr 7, 2016

Okay, i found it myself. Many deprecated handlebars were used in this template (as I migrated it from grunt-styleguide). Thanks for your help!

@renet renet closed this as completed Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants