justalever / kickoff_tailwind

A rapid Rails 7 application template for personal use bundled with Tailwind CSS
https://webcrunch.com
573 stars 141 forks source link

Error using the Template #10

Closed ebeagusamuel closed 3 years ago

ebeagusamuel commented 4 years ago

Hi @justalever. I tried using the template to create a new rails app but i keep getting an error when it gets to this point in the installing run mkdir -p app/javascript/stylesheets from ".". Here is what is been displayed before the installation is cut off The file /home/ebeagusamuel/Documents/kickoff_tailwind/demo/app/javascript/packs/application.js does not appear to exist. I have no idea what is causing the issue. Will be grateful if you can help me with this.

Thanks for all you do, your tutorials have been really helpful.

justalever commented 4 years ago

Hey @ebeagusamuel,

Are you generating the app locally and pointing to GitHub directly by chance?

I typically clone the repo and create a new app inside it. I still need to work out the kinks on the remote version.

Example

rails new my_app -m kickoff_tailwind/template.rb
ebeagusamuel commented 4 years ago

Thanks for the Swift reply. I cloned the repo and am creating the new app inside the the cloned repo's directory.

justalever commented 4 years ago

Thanks for confirming @ebeagusamuel . I can't seem to reproduce the issue. Any chance you got this sorted?

bear-in-mind commented 4 years ago

Hey guys, I'm having issues in production with my own Rails + Tailwind project, and landed on this repo. Out of curiosity, I cloned it and generated a new app with this template but ended up with the same problem : there's a 404 on the application.js as well... I'm out of luck !

ghost commented 3 years ago

same here still figured how....

ghost commented 3 years ago

it fix just delete this for everyone facing problem...

  run "mkdir -p app/javascript/stylesheets"

  append_to_file("app/javascript/packs/application.js", 'import "stylesheets/application"')
  inject_into_file("./postcss.config.js",
  "let tailwindcss = require('tailwindcss');\n",  before: "module.exports")
  inject_into_file("./postcss.config.js", "\n    tailwindcss('./app/javascript/stylesheets/tailwind.config.js'),", after: "plugins: [")

  run "mkdir -p app/javascript/stylesheets/components"

and replaces the file app/javascript with https://github.com/justalever/kickoff_tailwind

don't forget postcss.config.js too...

very well done fix to me.

justalever commented 3 years ago

This has since been updated so I'll go ahead and close this issue.

Rex-am-I commented 3 years ago

I am encountering the exact same error even after I cloned it.