nielsenramon / chalk

Chalk is a high quality, completely customizable, performant and 100% free Jekyll blog theme.
http://chalk.nielsenramon.com
MIT License
1.22k stars 440 forks source link

Error: couldn't find file 'jquery' with type 'application/javascript' #178

Closed Starsassault closed 4 years ago

Starsassault commented 6 years ago

When I deploy the forked repository locally the terminal comes across the the following error:

Error: couldn't find file 'jquery' with type 'application/javascript' in `_posts/2017-12-22-configuring-chalk.md'

saifulmuhajir commented 6 years ago

I have the same problem. Tried npm clean up with --force, removing node_modules and reinstall and the result is the same.

Doing this on Arch.

cesards commented 5 years ago

Same problem here. Is the repo maintained? The owner hasn't answer about this. I'm not a front-end expert and I've been trying to fix the problem with no luck and I'm not able to execute the demo locally: jekyll serve keeps giving me that erro:

Liquid Exception: couldn't find file 'jquery' with type 'application/javascript' in `_posts/2017-12-21-chalk-sample-post-with-all-elements.md' Checked in these paths:  /Users/xxx/Development/Website/Thirds/Chalk/_assets/icons
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/javascripts
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/stylesheets
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/yarn
  /Users/xxx/Development/Website/Thirds/Chalk/assets/css
  /Users/xxx/Development/Website/Thirds/Chalk/assets/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/assets/images
  /Users/xxx/Development/Website/Thirds/Chalk/assets/videos
  /Users/xxx/Development/Website/Thirds/Chalk/assets/audios
  /Users/xxx/Development/Website/Thirds/Chalk/assets/components
  /Users/xxx/Development/Website/Thirds/Chalk/assets/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/assets/video
  /Users/xxx/Development/Website/Thirds/Chalk/assets/audio
  /Users/xxx/Development/Website/Thirds/Chalk/assets/image
  /Users/xxx/Development/Website/Thirds/Chalk/assets/img
  /Users/xxx/Development/Website/Thirds/Chalk/assets/js
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/css
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/images
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/videos
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/audios
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/components
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/video
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/audio
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/image
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/img
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/js
  /Users/xxx/Development/Website/Thirds/Chalk/css
  /Users/xxx/Development/Website/Thirds/Chalk/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/images
  /Users/xxx/Development/Website/Thirds/Chalk/videos
  /Users/xxx/Development/Website/Thirds/Chalk/audios
  /Users/xxx/Development/Website/Thirds/Chalk/components
  /Users/xxx/Development/Website/Thirds/Chalk/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/audio
  /Users/xxx/Development/Website/Thirds/Chalk/video
  /Users/xxx/Development/Website/Thirds/Chalk/image
  /Users/xxx/Development/Website/Thirds/Chalk/img
  /Users/xxx/Development/Website/Thirds/Chalk/js
  /Users/xxx/Development/Website/Thirds/Chalk/.jekyll-cache/assets/proxied in /_layouts/post.html
jekyll 3.8.4 | Error:  couldn't find file 'jquery' with type 'application/javascript' in `_posts/2017-12-21-chalk-sample-post-with-all-elements.md'

Checked in these paths:
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/icons
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/javascripts
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/stylesheets
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/yarn
  /Users/xxx/Development/Website/Thirds/Chalk/assets/css
  /Users/xxx/Development/Website/Thirds/Chalk/assets/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/assets/images
  /Users/xxx/Development/Website/Thirds/Chalk/assets/videos
  /Users/xxx/Development/Website/Thirds/Chalk/assets/audios
  /Users/xxx/Development/Website/Thirds/Chalk/assets/components
  /Users/xxx/Development/Website/Thirds/Chalk/assets/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/assets/video
  /Users/xxx/Development/Website/Thirds/Chalk/assets/audio
  /Users/xxx/Development/Website/Thirds/Chalk/assets/image
  /Users/xxx/Development/Website/Thirds/Chalk/assets/img
  /Users/xxx/Development/Website/Thirds/Chalk/assets/js
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/css
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/images
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/videos
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/audios
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/components
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/video
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/audio
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/image
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/img
  /Users/xxx/Development/Website/Thirds/Chalk/_assets/js
  /Users/xxx/Development/Website/Thirds/Chalk/css
  /Users/xxx/Development/Website/Thirds/Chalk/fonts
  /Users/xxx/Development/Website/Thirds/Chalk/images
  /Users/xxx/Development/Website/Thirds/Chalk/videos
  /Users/xxx/Development/Website/Thirds/Chalk/audios
  /Users/xxx/Development/Website/Thirds/Chalk/components
  /Users/xxx/Development/Website/Thirds/Chalk/javascript
  /Users/xxx/Development/Website/Thirds/Chalk/audio
  /Users/xxx/Development/Website/Thirds/Chalk/video
  /Users/xxx/Development/Website/Thirds/Chalk/image
  /Users/xxx/Development/Website/Thirds/Chalk/img
  /Users/xxx/Development/Website/Thirds/Chalk/js
  /Users/xxx/Development/Website/Thirds/Chalk/.jekyll-cache/assets/proxied
Zeta611 commented 5 years ago

I had my blog working perfectly fine, which I made on August 19th. I'm now trying to update with a new post, and it broke after running npm run publish, after trying npm run local. It showed an error: "ENOENT: no such file or directory, lstat '/Users/jay/zetablog.ml/_assets/yarn/mkdirp'", addressed in #168.

So I downloaded the fresh version of my blog, and it runs fine on npm run local, but not with publish. After the error, npm run local also throws an error: Liquid Exception: couldn't find file 'jquery' with type 'application/javascript' ... Maybe both issues are related?

knhash commented 5 years ago

You probably do not have certain yarn modules installed. I had the same issue until I looked into the build script at bin/setup. The last couple lines take care of the JS dependency:

npm install -g yarn

yarn install --modules-folder ./_assets/yarn

jameshyen commented 5 years ago

If anyone is still stuck with this, I believe it’s because the yarn.lock file is offending. Delete it, and then remove _assets/yarn. Then running the very last command @knhash mentioned, again, should do the trick. In my case I think I originally made use of this repo by mirroring it, and hadn’t received any updates from it in a while. So I set https://github.com/nielsenramon/chalk.git as upstream and then merged it into one my local branches. Maybe the yarn.lock file was left over since it appears to be ignored.