Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6361] Alloy compiler failed when using CLI 7.1.1

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2019-10-19T23:03:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI
Labelsn/a
ReporterMichiel van Eerd
AssigneeShak Hossain
Created2019-09-09T07:44:24.000+0000
Updated2019-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

FileDateSize
Screenshot 2019-09-23 at 5.48.12 PM.png2019-09-23T10:00:30.000+000025430
Screenshot 2019-09-23 at 5.58.08 PM.png2019-09-23T10:00:46.000+000064698
Simulator Screen Shot - iPhone 11 - 2019-09-23 at 17.57.59.png2019-09-23T10:00:51.000+000039122

Comments

  1. Rakhi Mitro 2019-09-09

    Hello, Thanks for letting us know. Are you experiencing the same using iOS device also? Can you please check and let us know.
  2. Chris Barber 2019-09-09

    [~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.
  3. Michiel van Eerd 2019-09-10

    @Rakhi Mitro: yes I experience the same using an iOS device.
  4. lau.yikonn 2019-09-22

    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"
  5. Rakhi Mitro 2019-09-23

    [~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.
  6. lau.yikonn 2019-09-23

    @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!
  7. Rakhi Mitro 2019-09-24

    [~lau.yikonn], Did you manage run your old project on 8.2.0 and CLI 7.1.1 ? Please test and let us know.
  8. Sharif AbuDarda 2019-10-15

    Hello [~michielve], Can you follow the comment by [~lau.yikonn]. I believe the node upgrade should resolve the issue. Let us know. Thanks.
  9. Michiel van Eerd 2019-10-16

    Hi Sharif, "appc use 7.1.1 --force" did the trick for me.

JSON Source