Skip to content
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

SMT is undefined error with v0.3.0 #21

Open
chrisbarber86 opened this issue Mar 17, 2017 · 5 comments
Open

SMT is undefined error with v0.3.0 #21

chrisbarber86 opened this issue Mar 17, 2017 · 5 comments

Comments

@chrisbarber86
Copy link

When we upgrade to the latest version of smt_rails - v0.3.0 we are getting the following error when running our test suite:

SMT is not defined in http://127.0.0.1:33659/assets/application.js

We are using Rails 4.2.7.1 and Sprockets 3.7.0

@le0pard
Copy link
Member

le0pard commented Mar 17, 2017

Hello @chrisbarber86 . This gem never was tested with Sprockets 3 or 4, so I am sure, it will not work.

@chrisbarber86
Copy link
Author

@le0pard Hmm we've been using it with Sprockets 3 for a while now and haven't had any problems until this latest version.

The readme file actually says it's for Sprockets 2 and 3:

Shared mustache templates for Rails 3 and 4 and Sprockets 2 and 3.

@le0pard
Copy link
Member

le0pard commented Mar 18, 2017

In this case you need check you env, if it was work before. Clear assets cache for example.

@mikebaldry
Copy link

I am also experiencing this. I've upgraded from 0.2.7 which worked fine, now it does not work. I'll try and investigate but my knowledge of sprockets is limited at this point.

@mikebaldry
Copy link

I ended up just rolling back to 0.2.7 and its working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants