Comments (11)
We need to repackage properly the all thing so everything is exposed from root and not from ./src
from ngx-schema-form.
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.
I forgot to mention something: we do get this error message, but the forms are working anyway.
from ngx-schema-form.
The demo doesn't work for me:
And my application doesn't start up with the same error in the console.
from ngx-schema-form.
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.
@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.
@Vegita2 we were just missing the typings
property in package.json
.
from ngx-schema-form.
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.
@ebrehault agree.. it was just a fast solution to make it work..
from ngx-schema-form.
@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.
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)
- Could not resolve dependency - peer @angular/common@"^11.2.6" from [email protected]
- Parent container for all the form actions HOT 3
- [Bug]: Type mismatch with sf-form component input HOT 1
- Regression loading array data with v 2.7.0
- Visible If not working if value is [0] HOT 3
- Add support for Angular 14 HOT 2
- when adding my angular 14.0.6 project > npm install ngx-schema-form --save HOT 4
- "visibleIf" with nothing vs. "oneOf"
- Support for draft 2020-12 array syntax
- are dependent fields in JSON schema supported ? HOT 2
- visibilityIf no longer works when target is multiple Select widget HOT 2
- Type 'string' is not assignable to type 'TSchemaPropertyType | undefined' HOT 1
- Add support for Angular 15 HOT 3
- Compatibility issue with Angular version 8.2 HOT 5
- Large number input fields behaving oddly HOT 2
- Compatibility with angular 16 HOT 3
- ESM imports not working HOT 1
- undefined type "undefined" error for a valid schema HOT 1
- Issue with visibleIf in array items HOT 4
- upgrade to Angular 17 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-schema-form.