question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jhonvedocommented, Aug 3, 2017

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.

0reactions
faustotnccommented, Sep 26, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Error [...] resolving symbol FormioModule in /.../formioApp/node_modules/ng2-formio/dist/index.d.ts #72.
Read more >
Angular 2.0.2 - Error encountered resolving symbol values ...
"Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an ...
Read more >
Angular 2/4: Resolved poblem with Error encountered ... - QPS
Porblem when try to build on server with : "build:prod": "ng build --prod" Error encountered resolving symbol values statically.
Read more >
Documentation - Modules .d.ts - TypeScript
Comparing JavaScript to an example DTS. Common CommonJS Patterns. A module using CommonJS patterns uses module.exports to describe the exported values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found