Giter Site home page Giter Site logo

Comments (10)

lettgers avatar lettgers commented on June 16, 2024

还有人遇到吗?求支招...

from hexo-theme-yelee.

ylongwang2782 avatar ylongwang2782 commented on June 16, 2024

啊啊,我研究这个问题一个通宵了!有谁能帮帮我吗!要哭了

from hexo-theme-yelee.

hjl68 avatar hjl68 commented on June 16, 2024

兄弟,解决了吗

from hexo-theme-yelee.

hjl68 avatar hjl68 commented on June 16, 2024

我也遇到了

from hexo-theme-yelee.

bladedevoff avatar bladedevoff commented on June 16, 2024

我也是啊,我还报错//color什么的

from hexo-theme-yelee.

bladedevoff avatar bladedevoff commented on June 16, 2024

已经解决了,我用的是butterfly主题,可能和你们的不一样
解决过程:有可能是因为你自定义了主题色,改回去试试

from hexo-theme-yelee.

ZY19990807 avatar ZY19990807 commented on June 16, 2024

主题换回去,然后再改动你需要改动的,亲测有效

from hexo-theme-yelee.

ShiroiTree avatar ShiroiTree commented on June 16, 2024

检查路径名称里是否存在# @ 等非法字符,可能导致运行错误的字符。

from hexo-theme-yelee.

stellaSalad avatar stellaSalad commented on June 16, 2024

我也遇到了,问了一下chat GPT,解决了,主要是要创建那个missing file.

Creating a Stylus stylesheet is quite straightforward. In your case, it seems that Hexo is expecting a file named styles.styl in the _data directory. Here are the steps to create an empty styles.styl file:

  • Navigate to the Directory:

Open your terminal or command prompt, and navigate to the _data directory in your Hexo project. Based on the error message, the path is: C:\Users\stell\Desktop\Website\Blog\source\_data in my case.

  • Create the File:
    Once you are in the correct directory, you can create the styles.styl file. You can do this using a text editor or the echo command on the command line. Here's an example using the command line:
echo "// Empty Stylus file" > styles.styl

This command creates a new file named styles.styl and adds a comment line to it.

  • Verify File Creation:

After running the command, you can check that the file has been created by using a text editor or by listing the files in the directory:

dir  # on Windows

or

ls   # on Linux/Mac

Look for styles.styl in the list of files.

  • Run Hexo:
    Once the file is created, try running hexo g again:
hexo g

Hexo should now be able to find the styles.styl file, and the error should be resolved.

Remember that this is just a placeholder file, and you may need to add actual Stylus code to it based on your theme's requirements. If the theme expects specific styling in styles.styl, you'll want to customize it accordingly. If you have any further questions or run into issues, feel free to ask!

from hexo-theme-yelee.

ShiroiTree avatar ShiroiTree commented on June 16, 2024

from hexo-theme-yelee.

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.