-
Notifications
You must be signed in to change notification settings - Fork 56
hexo-renderer-sass using error #101
Comments
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. |
@dokinchan We are having issues with SCSS imports and |
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* no relative imports anymore * user should update the configuration related to #101
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 * chore(npm): add package-lock.json under version control close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
* fix(sass): user customization and relative imports errors #101 * chore(sass): use `include-path` option to include `node_modules` folder and let us import third-party scss files without ugly relative imports * chore(npm): adjust `dress-code` semver to only minor * chore(dress-code): update fonts to ~2.4.0 close #101 BREAKING CHANGE: Users utilizing hexo-theme-doc and sass are asked to update their configuration file(s) and add: ```yaml node_sass: includePaths: - node_modules ```
Hi @rbarilani, after changing the file in "/{rootFolder}/source/styles/doc.scss"(This was added manually mentioned by @dokinchan earlier.) from It still not work for me. The error messages:
How can I do? Thanks! Specifications
|
@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. |
* no relative imports anymore * user should update the configuration related to #101
* no relative imports anymore * user should update the configuration related to #101
I confirmed @rbarilani 's change fixes the issue. To apply his change to your project, run |
https://zalando-incubator.github.io/hexo-theme-doc/usage-and-configuration/sass-styles.html
like the link, I created source/styles/doc.scss in the project root directory
and wrote down only this codes;
$doc-color-primary: red; // set primary color to "red"
@import "../node_modules/hexo-theme-doc/_doc.scss"
and it causes the error when I "hexo g"
it says
"Error: File to import not found or unreadable: ../node_modules/hexo-theme-doc/_doc.scss.
Parent style sheet: /Users/boyeon/study/blog/dokinchan/source/styles/doc.scss"
What should I do??
Specifications
The text was updated successfully, but these errors were encountered: