[AC-6361] Alloy compiler failed when using CLI 7.1.1
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2019-10-19T23:03:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI |
Labels | n/a |
Reporter | Michiel van Eerd |
Assignee | Shak Hossain |
Created | 2019-09-09T07:44:24.000+0000 |
Updated | 2019-10-19T23:03:58.000+0000 |
Description
After updating the appc CLI with appc use latest (version 7.1.1), I receive the following error when compiling a project for iPhone simulator:
{noformat}
[INFO] Executing Alloy compile: /Users/michielve/.nvm/versions/node/v10.16.3/bin/node /Users/michielve/.appcelerator/install/7.1.1/package/node_modules/alloy/bin/alloy compile /Users/michielve/Documents/titaniumapps/TestApp/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator
[ERROR] : Cannot find module './validators/react/isReactComponent'
[ERROR] Alloy compiler failed
{noformat}
I use the following command to compile:
{noformat}
appc run -p ios -C "13017F7E-DB7E-4492-99F3-4C49E8A24244"
{noformat}
When I go back to 7.1.0 everything is okay.
Attachments
Hello, Thanks for letting us know. Are you experiencing the same using iOS device also? Can you please check and let us know.
[~topener] Alloy doesn't support React, so it must be Alloy's AST walker choking on a npm package that is not installed or cannot be resolved for some reason.
@Rakhi Mitro: yes I experience the same using an iOS device.
I got the same problem as you. so i uninstall the nodejs and download the latest nodejs to solve the problem. after install latest nodejs, please run "appc setup" it will ask you to run the following command to re-build for the newer version "appc use 7.1.1 --force"
[~lau.yikonn], Can you please create a new project and then run again on SDK 8.2.0.GA, use CLI 7.1.1 and let us know how it goes.
@Rakhi Mitro yes, im able to run a new project with SDK 8.2.0 and CLI 7.1.1 !Screenshot 2019-09-23 at 5.48.12 PM.png|thumbnail! !Screenshot 2019-09-23 at 5.58.08 PM.png|thumbnail! !Simulator Screen Shot - iPhone 11 - 2019-09-23 at 17.57.59.png|thumbnail!
[~lau.yikonn], Did you manage run your old project on 8.2.0 and CLI 7.1.1 ? Please test and let us know.
Hello [~michielve], Can you follow the comment by [~lau.yikonn]. I believe the node upgrade should resolve the issue. Let us know. Thanks.
Hi Sharif, "appc use 7.1.1 --force" did the trick for me.