问题
I am trying to build a Sencha app but I am getting the following errors:
[ERR] The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/build-impl.xml:286:
The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:280:
The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:286:
Problem: failed to create task or type x-compass-compile Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place.
I looked into the Ant scripts and it appears that the issue is around the SASS process using Compass.
I can confirm that Compass v1.0.3 is installed.
After that, I am not a Sencha expert so am stuck. How can I fix this issue please?
Thank you.
回答1:
I ran into this error too. I had just upgraded to Sencha CMD 6.0.2.14. Download page
It looks like you're using Sencha Touch and it's probably 2.x. There's a component called "Compass extension" in the installer that needs to be checked.
- If you didn't install the ruby, Install the ruby2.X. Ruby is required to build the sencha application and set 'ruby' to your system path variable.
eg: check your ruby version with
ruby -v
来源:https://stackoverflow.com/questions/31249409/sencha-build-due-to-sass-target