Coder Social home page Coder Social logo

Comments (11)

ebrehault avatar ebrehault commented on May 31, 2024 1

We need to repackage properly the all thing so everything is exposed from root and not from ./src

from ngx-schema-form.

ebrehault avatar ebrehault commented on May 31, 2024

I have the same problem, but it is quite new (since we upgraded to Angular 2 final, I think).
We will fix that.

from ngx-schema-form.

ebrehault avatar ebrehault commented on May 31, 2024

I forgot to mention something: we do get this error message, but the forms are working anyway.

from ngx-schema-form.

CSchulz avatar CSchulz commented on May 31, 2024

The demo doesn't work for me:

image

And my application doesn't start up with the same error in the console.

from ngx-schema-form.

Vegita2 avatar Vegita2 commented on May 31, 2024

It seems to work if you add an index.d.ts inside the angular2-schema-form module with this line

export * from './dist/src'

or for now you could add this to your type definitions

declare module 'angular2-schema-form' {
    export * from 'angular2-schema-form/dist/src'
}

from ngx-schema-form.

ebrehault avatar ebrehault commented on May 31, 2024

@Vegita2 indeed, you are right. Do you know how the packaging should be done to avoid this problem? (package.json contains a main attributes to indicates the JS entry point, is there something similar for .d.ts?)

from ngx-schema-form.

ebrehault avatar ebrehault commented on May 31, 2024

@Vegita2 we were just missing the typings property in package.json.

from ngx-schema-form.

aurimukas avatar aurimukas commented on May 31, 2024

Still the problem persists. when defining typings you need to change this
"typings": "dist/index.d.ts" to this "typings": "dist/src/index.d.ts"

from ngx-schema-form.

aurimukas avatar aurimukas commented on May 31, 2024

@ebrehault agree.. it was just a fast solution to make it work..

from ngx-schema-form.

aurimukas avatar aurimukas commented on May 31, 2024

@ebrehault could you list me project building requirements (node versions etc.) because with my current config I can't build it

from ngx-schema-form.

ebrehault avatar ebrehault commented on May 31, 2024

Well right now, it is pretty much broken.
I am fighting AoT issues in another package (https://github.com/makinacorpus/angular-traversal), seems like this article https://medium.com/@isaacplmann/getting-your-angular-2-library-ready-for-aot-90d1347bcad gives a good approach.

Once I will have a clean base, I will update angular2-schema-form the same way.

from ngx-schema-form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.