-
Notifications
You must be signed in to change notification settings - Fork 328
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 #245
Comments
还有人遇到吗?求支招... |
啊啊,我研究这个问题一个通宵了!有谁能帮帮我吗!要哭了 |
兄弟,解决了吗 |
我也遇到了 |
我也是啊,我还报错//color什么的 |
已经解决了,我用的是butterfly主题,可能和你们的不一样 |
主题换回去,然后再改动你需要改动的,亲测有效 |
检查路径名称里是否存在# @ 等非法字符,可能导致运行错误的字符。 |
我也遇到了,问了一下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:
Open your terminal or command prompt, and navigate to the _data directory in your Hexo project. Based on the error message, the path is:
This command creates a new file named styles.styl and adds a comment line to it.
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:
or
Look for styles.styl in the list of files.
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! |
我这边已经解决了,发现是路径名中有'#'造成css资源读取错误。
不过还是谢谢。
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: stellaSalad ***@***.***>
发送时间: Monday, January 22, 2024 11:13:12 PM
收件人: MOxFIVE/hexo-theme-yelee ***@***.***>
抄送: ShiroiTree ***@***.***>; Comment ***@***.***>
主题: Re: [MOxFIVE/hexo-theme-yelee] ERROR Asset render failed: css/style.css (#245)
我也遇到了,问了一下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!
―
Reply to this email directly, view it on GitHub<#245 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCIOPWEIYIQBQH4TECOYCT3YPZ6YRAVCNFSM4GG4UUE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQGQZDCMZTGY2Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
报错如下
hexo --version
google遍了没找到解决方法.. 试过重装几个renderer没有用,更新hexo也没用..求支招...
The text was updated successfully, but these errors were encountered: