Ngx-formly: Run time error while running to the device

Created on 9 Nov 2016  路  20Comments  路  Source: ngx-formly/ngx-formly

Hi,
I tried it, It works perfectly while I run in ionic lab. But when execute run to my android device, it shows an error:

Uncaught Error: Cannot find module "../node_modules/ng2-formly/lib/core/components/formly.group.ngfactory", http://.../build/main.js, Line: 25

Please can you help me with this?

All 20 comments

fixed by #240

@aitboudad , I'm still facing the same problem

[12:08:57] Error: Template parse errors:
[12:08:57] Can't bind to 'model' since it isn't a known property of 'formly-form'.
[12:08:57] 1. If 'formly-form' is an Angular component and it has 'model' input, then verify that it is part of this
module.
[12:08:57] 2. If 'formly-form' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this
component to suppress this message.
12:08:57="name = $event.target.value">
[12:08:57] 'formly-form' is not a known element:
[12:08:57] 1. If 'formly-form' is an Angular component, then verify that it is part of this module.
[12:08:57] 2. If 'formly-form' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this
component to suppress this message. ("e}}!
[12:08:57] ngc failed
[12:08:57] ionic-app-script task: "build"
[12:08:57] Error: Error

Could you provide a plunkr or a repo reproducing the problem?

May be you are using beta.11. You will have to wait for this project to be tagged and pushed to npm. Or else you can also you the github latest instead

@mohammedzamakhan @aitboudad

1

And import of 'formly.attribute' is missing from code.d.ts.
import { FormlyAttributes } from './components/formly.attributes';

I did a try again but doesn't happen to me, as I mentioned above it would be helpful if you can provide me a repo reproducing the problem, thanks

@aitboudad
Please have a look at the src files that I have uploaded. And if you want me to upload the whole project file, I can do that. Please let me know thanks.

https://github.com/hariharan614/formlyTest.git

just checked and #240 seems fixed the issue, @mohammedzamakhan can you made a new release

@aitboudad
If its available soon, it would solve my whole problem. Or If I can do any changes to make it work after 'npm install', pls let me know.

@aitboudad released 2.0.0-beta.12 version 馃敟

Thank you soo much for your support 馃憤 ... I'm going to try it now...

@hariharan614 since you are working on ionic 2, can you help us maintain the ng2-formly-ionic-templates?

We have one for bootstrap in this repo, and we plan to separate it out, and we have one for material 2 at https://github.com/formly-js/ng2-formly-template-material

@mohammedzamakhan Sure, I'm happy for the opportunity. I'll look into the repo and try my best to help... 馃憤

Here is the repo, just created, just for you 馃槃

Thanks a lot @hariharan614

https://github.com/formly-js/ng-formly-ionic-templates

@mohammedzamakhan @aitboudad

One more problem in the released version...

q

@mohammedzamakhan the lib folder isn't included in the last build

see #251

Hi, pls let me know about this bug fix. thank you. @aitboudad @mohammedzamakhan

Try upgrading to v2.0.0-beta.13

Was this page helpful?
0 / 5 - 0 ratings