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

ERROR Asset render failed: css/style.css #1485

Closed
crystalwm opened this issue Sep 4, 2015 · 3 comments
Closed

ERROR Asset render failed: css/style.css #1485

crystalwm opened this issue Sep 4, 2015 · 3 comments

Comments

@crystalwm
Copy link

错误信息

ParseError: D:/WebStorm9.0.2/Hexo_blog/node_modules/hexo-renderer-stylus/node_mo
dules/nib/lib/nib/normalize/base.styl:5:5
   1| // Based in Nicolas Gallagher's git.io/normalize
   2| normalize-base()
   3|   html // Prevent iOS text size adjust after orientation change.
   4|     font-family sans-serif
   5|     -ms-text-size-adjust 100%
----------^
   6|     -webkit-text-size-adjust 100%
   7|   body
   8|     margin 0

unexpected "indent"

    at Parser.error (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-stylu
s\node_modules\stylus\lib\parser.js:257:11)
    at Parser.stmt (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-stylus
\node_modules\stylus\lib\parser.js:789:32)
    at Parser.statement (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-s
tylus\node_modules\stylus\lib\parser.js:660:21)
    at Parser.block (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-stylu
s\node_modules\stylus\lib\parser.js:835:21)
    at Parser.functionDefinition (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-r
enderer-stylus\node_modules\stylus\lib\parser.js:1713:21)
    at Parser [as function] (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\parser.js:1654:18)
    at Parser.stmt (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-stylus
\node_modules\stylus\lib\parser.js:753:26)
    at Parser.statement (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-s
tylus\node_modules\stylus\lib\parser.js:660:21)
    at Parser.parse (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-stylu
s\node_modules\stylus\lib\parser.js:234:25)
    at Evaluator.importFile (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\visitor\evaluator.js:74:20)
    at Evaluator.visitImport (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-rende
rer-stylus\node_modules\stylus\lib\visitor\evaluator.js:906:27)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.visitBlock (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\visitor\evaluator.js:706:39)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.importFile (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\visitor\evaluator.js:95:18)
    at Evaluator.visitImport (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-rende
rer-stylus\node_modules\stylus\lib\visitor\evaluator.js:906:27)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.visitBlock (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\visitor\evaluator.js:706:39)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.importFile (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-render
er-stylus\node_modules\stylus\lib\visitor\evaluator.js:95:18)
    at Evaluator.visitImport (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-rende
rer-stylus\node_modules\stylus\lib\visitor\evaluator.js:906:27)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.visitRoot (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-rendere
r-stylus\node_modules\stylus\lib\visitor\evaluator.js:693:27)
    at Evaluator.Visitor.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-ren
derer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
    at Evaluator.visit (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\visitor\evaluator.js:156:18)
    at Evaluator.evaluate (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer
-stylus\node_modules\stylus\lib\visitor\evaluator.js:233:15)
    at Renderer.render (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-renderer-st
ylus\node_modules\stylus\lib\renderer.js:86:26)
    at Hexo.module.exports (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo-rendere
r-stylus\lib\renderer.js:45:6)
    at Hexo.tryCatcher (D:\WebStorm9.0.2\Hexo_blog\node_modules\hexo\node_module
s\bluebird\js\main\util.js:26:23)

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.1.1"
  },
  "dependencies": {
    "hexo": "^3.1.0",
    "hexo-generator-archive": "^0.1.2",
    "hexo-generator-category": "^0.1.2",
    "hexo-generator-index": "^0.1.2",
    "hexo-generator-tag": "^0.1.1",
    "hexo-renderer-ejs": "^0.1.0",
    "hexo-renderer-stylus": "^0.3.0",
    "hexo-renderer-marked": "^0.2.4",
    "hexo-server": "^0.1.2"
  }
}
@andrewwhalley
Copy link

I'm facing this problem too and still looking for a solution. I'll let you know if I figure something out.

@andrewwhalley
Copy link

I ended up just downgrading as per issue #1094 and if this get's explained by someone with more knowledge about the product I'll change back to 3.x

@crystalwm
Copy link
Author

Thank you andrewwhalley !

cause

hexo:version 3.1.1 unstable
the newest stable version: 2.8.3

related issues

#1094   #1103   #1059

how to solve

#uninstall the unstable hexo
npm uninstall hexo-cli -g
#install the stable hexo 
npm install [email protected] -g
#xxx means you directory
hexo init xxx
cd xxx
npm install
#For Hexo 2.x, you have to install [email protected] and [email protected].
npm install [email protected]
npm install [email protected]
hexo generate
hexo server
```Thank you  andrewwhalley  !
<h4>cause</h4>
hexo:version 3.1.1 unstable
the newest stable version: 2.8.3
<h4> related issues</h4>
https:/hexojs/hexo/issues/1094 &nbsp;  https:/hexojs/hexo/issues/1103  &nbsp; https:/hexojs/hexo/issues/1059
<h4>how to solve</h4>

#uninstall the unstable hexo
npm uninstall hexo-cli -g
#install the stable hexo
npm install [email protected] -g
#xxx means you directory
hexo init xxx
cd xxx
npm install
#For Hexo 2.x, you have to install [email protected] and [email protected].
npm install [email protected]
npm install [email protected]
hexo generate
hexo server

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