-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TypeError: Cannot read property 'version' of undefined #4055
Comments
I have the same problem :(, i try in two different macbook and nothing. :( |
As an additional note, if the line https://github.com/solidusio/solidus/blob/master/frontend/app/views/spree/shared/_head.html.erb#L8 gets commented out, the page loads correctly (without styles but at least it works) |
Any solution? 😞 |
Do you have NodeJS installed? What version?
|
Hello @jarednorman , yes I do
As a note, I also tried the dockerfile you guys have on the project and that didn't worked either (I used the sandbox application) |
Yes i have v14.16.1 and other mac v14.15.4 but still the error persist. |
Hmm, that's definitely strange that we'd be getting an error in |
Hello, I saw this same error yesterday. It seems to be an incompatibility with the new version of See rails/execjs#99. For me, the short-term solution is to lock to an older version of |
Thanks @benjaminwil. I'm going to close this as I don't think there's any action for us to take within Solidus itself, but this thread should be useful for other people encountering the issue. |
See: #4055 (comment) |
Sounds like it's actually an autoprefixer-rails issue: ai/autoprefixer-rails#203 |
I'd keep this open until we have a solution to give it more visibility to the community. |
Still experiencing this issue with the following :
ExecJS is sitting on 2.8.1 |
@dominicsanto we are not seeing the issue anymore in our specs. Can you share your |
@kennyadsl I had to upgrade my version of |
However, keep in mind it's not compatible with Ruby 3.0, although Solidus is not 100% compatible either yet. A definitive fix from |
At lesser versions, the test suite encounters an error and cannot run: Failure/Error: Unable to find eval (eval at <anonymous> ((execjs) to read failed line ExecJS::ProgramError: TypeError: Cannot read property 'version' of undefined # eval (eval at <anonymous> ((execjs):1:213), <anonymous>:1:10) # (execjs):1:213 # (execjs):19:14 # ... This seems related to the issue reported on Solidus: solidusio/solidus#4055. Adding `autoprefixer-rails` at the latest version side-steps the issue.
…refixer-rails Fixes solidusio#4055
…refixer-rails Fixes solidusio#4055
Unable to complete installation steps.
Solidus Version:
3.0.1
To Reproduce
Current behavior
The following error can be seen on the page
Showing /usr/local/bundle/gems/solidus_frontend-3.0.1/app/views/spree/shared/_head.html.erb where line #7 raised:
TypeError: Cannot read property 'version' of undefined
Trace of template inclusion: /usr/local/bundle/gems/solidus_frontend-3.0.1views/spree/layouts/spree_application.html.erb
Rails.root: /app
Expected behavior
The app works properly
Screenshots
Desktop (please complete the following information):
Additional context
In all scenarios, I get the same error.
The text was updated successfully, but these errors were encountered: