formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
615 stars 462 forks source link

Error [...] resolving symbol FormioModule in /.../formioApp/node_modules/ng2-formio/dist/index.d.ts #72

Closed tmdoit-zz closed 7 years ago

tmdoit-zz commented 7 years ago

I did following steps:

  1. npm install -g @angular/cli
  2. ng create formioApp
  3. cd formioApp
  4. Modify files as in https://github.com/formio/ng2-formio/wiki/1.)-Form-Renderer
  5. ng serve --host 0.0.0.0 --port 8080

ERROR in Error encountered resolving symbol values statically. Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler (position 2:22 in the original .ts file), resolving symbol FormioModule in /home/ubuntu/workspace/formioApp/node_modules/ng2-formio/dist/index.d.ts, resolving symbol AppModule in /home/ubuntu/workspace/formioApp/src/app/app.module.ts, resolving symbol AppModule in /home/ubuntu/workspace/formioApp/src/app/app.module.ts

travist commented 7 years ago

What version of Angular/TypeScript are you using? I am about to release an RC1 that I am sure will clear most of these compile issues.

tmdoit-zz commented 7 years ago

Angular - 2.4.10 Typescript - 2.0.10 I'm testing it on Cloud9 workspace, if you give me your email I can share it with you with RW rights.

travist commented 7 years ago

Sure... email is travis@form.io

tmdoit-zz commented 7 years ago

You have to first create an account on c9.io.

travist commented 7 years ago

I logged in through github, so try again.

harryhahn commented 7 years ago

i have the same issue

travist commented 7 years ago

Should be fixed with RC5.

jhonvedo commented 6 years ago

hi. it is late but I had this problem and I resolved erasing the folder node_modules within ng2-formio. I hope it helps them.

faustotnc commented 6 years ago

@jhonvedo Thanks a lot!!! that did solve the problems for me. I had a similar issue with ng2-typewriter.