-
Notifications
You must be signed in to change notification settings - Fork 169
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
Templates not getting wrapped in expected javascript #136
Comments
Nope, but the semicolon at the end of that template is quite strange |
Yep. It must be down to some package dependency that's gone weird on El Capitan. If (it had better be when) I find out I'll post it back here |
I'm seeing this as well on my Mac running El Capitan. Any updates? |
I do think that you have to check the paths once again. If you have set wrong template locations you would got caught in described situation. So double check your config. |
So I had been using sprockets 2.x and angular-rails-templates 0.1.3 (yeah, I know) and updated to sprockets 3.x and found that I needed to update angular-rails-templates as well. It worked perfectly before the upgrade, but now does the bug the OP talks about. I just changed my gem to 'angular-rails4-templates' and it works perfectly... Do you still think it has to do with the paths? |
I might to be wrong. But recently I ran into the same debug session. And in my case it was just wrong paths. And even strange semicolon appeared as described above. I suggest to ensure that processor for ng html registered properly. |
Hmm, I'll look into it more when I get a chance. For now I've had to go back to the old versions I was using. Thanks for your help! |
I'm seeing this as well moving from version .2 to 1.0. Edit: I'm also on Ubuntu 14.04, not OSX. |
Ok so I managed to fix this but ended up finding two different ways that actually addressed it. 1. On some versions add the
|
I found my issue as well. We were using |
Per @DarkArc's comment, I looked into the sub directories. I was able to get it working properly after using the
|
@peternixey could you post an empty Rails project or instructions on how to set it up to duplicate this issue? I have never seen this issue myself. |
@pitr Sure. I've put it onto https://github.com/Copyin/blank_rails.
Lastly can you ping me once you've got it as I'll make the repo private again. ta. |
I still can't replicate. Following your instructions I get:
|
Apologies. I should have explained that it is definitely system dependent. My colleague who was running exactly the same repo did not have the issue. I don't know how best to snapshot but I'm happy to send you versions of dependent brew installations etc if that would help? Sent from my iPhone
|
Thanks @peternixey. For me, it worked: #136 (comment) |
Any progress with this issue? |
Hit this today. @DarkArc 's hypothesis was correct for me, too :) |
Hit this today, again, 5+ years later. I had no memory of this but grateful for things like this sticking around! |
The following problem is definitely not a problem with the gem as we have this running correctly on our staging and other development servers. Please feel free to close it immediately if you don't have any ideas as to what it may be as it's definitely an issue with my development machine. On the off-chance that you do though I wanted to just float it.
For some reason, on my local machine, rails-templates is not wrapping the normal javascript around the templates themselves. Instead of compiling into something like:
The templates are simply compiling to:
Have you ever seen this before? Do you have any immediately have any thoughts as to what config setting could be causing this? If not don't sweat it but I thought it was worth asking
Thank you.
The text was updated successfully, but these errors were encountered: