Coder Social home page Coder Social logo

Comments (5)

rbarilani avatar rbarilani commented on June 21, 2024

Hi @dokinchan, there is a typo in the documentation page

with:

@import "../../node_modules/hexo-theme-doc/_doc.scss"
/* NOT: @import "../node_modules/hexo-theme-doc/_doc.scss" */

It should work.

from hexo-theme-doc.

rbarilani avatar rbarilani commented on June 21, 2024

@dokinchan We are having issues with SCSS imports and npm. Working on a proper fix.

from hexo-theme-doc.

walkccc avatar walkccc commented on June 21, 2024

Hi @rbarilani, after changing the file in "/{rootFolder}/source/styles/doc.scss"(This was added manually mentioned by @dokinchan earlier.)

from /* NOT: @import "../node_modules/hexo-theme-doc/_doc.scss" */
to @import "../../node_modules/hexo-theme-doc/_doc.scss"

It still not work for me.

The error messages:

~/CLRS/source(CLRS-sources*) » hexo s jay@Jays-MacBook-Pro
INFO Start processing
Error: File to import not found or unreadable: ../../../node_modules/dress-code/dist/sass/dress-code.
Parent style sheet: /Users/Jay/CLRS/node_modules/hexo-theme-doc/source/style/_doc/index.scss
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: File to import not found or unreadable: ../../../node_modules/dress-code/dist/sass/dress-code.
Parent style sheet: /Users/Jay/CLRS/node_modules/hexo-theme-doc/source/style/_doc/index.scss
at Object.module.exports.renderSync (/Users/Jay/CLRS/node_modules/node-sass/lib/index.js:439:16)
at Hexo. (/Users/Jay/CLRS/node_modules/hexo-renderer-sass/lib/renderer.js:25:23)
at /Users/Jay/CLRS/node_modules/hexo/lib/hexo/render.js:61:21
at tryCatcher (/Users/Jay/CLRS/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/Users/Jay/CLRS/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/Jay/CLRS/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)

How can I do? Thanks!

Specifications

  • NodeJS Version: 8.9.4
  • NPM Version: 5.6.0
  • OS: macOS High Sierra version 10.13.3
  • Hexo Version: 3.5.0

from hexo-theme-doc.

rbarilani avatar rbarilani commented on June 21, 2024

@dokinchan @walkccc working on a change that should fix the problem in the next release here. The change when merged will IMHO improve sass mechanism avoiding relative imports and fix the reported problem.

from hexo-theme-doc.

rkuzsma avatar rkuzsma commented on June 21, 2024

I confirmed @rbarilani 's change fixes the issue. To apply his change to your project, run npm i [email protected] --save

from hexo-theme-doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.