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

Setting "neat: true" results in error in 6.68.1 Docpad #9

Closed
JesseBilsten opened this issue Jun 9, 2014 · 5 comments
Closed

Setting "neat: true" results in error in 6.68.1 Docpad #9

JesseBilsten opened this issue Jun 9, 2014 · 5 comments

Comments

@JesseBilsten
Copy link

I can't seem to figure this out. Bourbon works fine, but as soon as I enable Neat, docpad crashes and acts as if it can't find Neat.

docpad-plugin-nodesass@2.3.0 node_modules/docpad-plugin-nodesass
├── mkdirp@0.3.5
├── node-neat@1.1.0
├── node-bourbon@1.0.0
├── taskgroup@3.3.9 (extendonclass@1.0.1, ambi@2.1.6)
└── node-sass@0.8.6 (node-watch@0.3.4, nan@0.8.0, chalk@0.4.0, optimist@0.6.1, mocha@1.18.2, sinon@1.10.2)

Error

[19:34:05] [jbilsten@jessebilsten ../jessebilsten.docpad]$ docpad run
info: Welcome to DocPad v6.68.1 (local installation: /Users/jbilsten/Projects/jessebilsten.docpad/node_modules/docpad)
notice: If everyone who saw this message donated $1/week, maintaining DocPad would become sustainable: http://docpad.org/donate
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: coffeescript, jade, livereload, marked, nodesass
info: Environment: development
info: DocPad listening to http://0.0.0.0:9778/ on directory /Users/jbilsten/Projects/jessebilsten.docpad/out
info: LiveReload listening to new socket on channel /docpad-livereload
info: Generating...
warning: Something went wrong while rendering: /Users/jbilsten/Projects/jessebilsten.docpad/src/documents/styles/style.css.scss 
The error follows: Error: source string:6: error: file to import not found or unreadable: "neat"

  at cmdOpts.error (/Users/jbilsten/Projects/jessebilsten.docpad/node_modules/docpad-plugin-nodesass/out/sass.plugin.js:89:25)

error: Something went wrong with the action
error: An error occured: 
Error: source string:6: error: file to import not found or unreadable: "neat"

  at cmdOpts.error (/Users/jbilsten/Projects/jessebilsten.docpad/node_modules/docpad-plugin-nodesass/out/sass.plugin.js:89:25)
error: To report the above error, follow the guide at: http://docpad.org/bug-report
info: Shutting down... cya next time!

docpad.coffee file:

# DocPad Configuration File
# http://docpad.org/docs/config

# Define the DocPad Configuration
docpadConfig = {
  templateData:
    site:
      # The website's styles
      styles: [
        '/styles/style.css'
      ] # ...

  plugins:
    nodesass:
      neat: true
}

# Export the DocPad Configuration
module.exports = docpadConfig

Style.css.scss

// Make sure the charset is set appropriately
@charset "UTF-8";

/*@import "normalize";*/
@import "bourbon";
@import "neat";
@10xLaCroixDrinker
Copy link
Contributor

Is your DocPad project public? If so, can you include a link?

@JesseBilsten
Copy link
Author

I'll work on getting it checked in and available on git today. I
replicated the same bug by doing a fresh install of docpad, adding nodesass
plugin, setting neat:true and adding an @import bourbon; @import neat;
which throws the same error.

I'll update the comment (or add another) when I get the project added to
github.

[edit] https://github.com/JesseBilsten/test.docpad

On Mon, Jun 9, 2014 at 7:33 AM, Jimmy King notifications@github.com wrote:

Is you DocPad project public? If so, can you include a link?


Reply to this email directly or view it on GitHub
#9 (comment)
.

@JesseBilsten
Copy link
Author

My title is incorrect, the project linked above is installed with docpad6.63.3 although I tested with both, it occurs in each. I'm fairly new to the docpad set up, so I'll try and get up to speed and see if I can't debug it later this week if you can't get to it.

10xLaCroixDrinker pushed a commit that referenced this issue Jun 11, 2014
- Fixes #9
- Added a test for bourbon and neat
@10xLaCroixDrinker
Copy link
Contributor

@JesseBilsten this is fixed now and published in v2.4.1

@JesseBilsten
Copy link
Author

Thanks you rock!

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

2 participants