Code Monkey home page Code Monkey logo

Comments (10)

Kalcode avatar Kalcode commented on August 17, 2024 3

@hamzahamidi
https://github.com/Kalcode/angular6-json-schema-form-test-app

Same error brand new repo. Not sure where its happening, hoping I could find it but I haven't. Hopefully you are able to help. Thanks.

from ajsf.

jhiemer avatar jhiemer commented on August 17, 2024 3

@hamzahamidi any plans to solve this? I think it is bad practise to include more libraries than really needed.

from ajsf.

woutervs avatar woutervs commented on August 17, 2024 3

Any news on this?
When I try to use it with bootstrap-4 i'm forced to install:
import { FlexLayoutModule } from '@angular/flex-layout';
import { Bootstrap4FrameworkModule } from 'angular6-json-schema-form';
import { MaterialDesignFrameworkModule } from 'angular6-json-schema-form';
As well as lodash-es
4 libraries that I don't need.

from ajsf.

hamzahamidi avatar hamzahamidi commented on August 17, 2024 1

Yes , I noticed that you need to install @angular/material whether or not you use material component.

from ajsf.

hamzahamidi avatar hamzahamidi commented on August 17, 2024

Are you sure you imported NoFrameworkModule like this:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { NoFrameworkModule } from 'angular6-json-schema-form';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule
    NoFrameworkModule
  ],
  providers: [],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

And you use the component like the following:

<json-schema-form
  loadExternalAssets="true"
  [schema]="yourJsonSchema"
  framework="no-framework"
  (onSubmit)="yourOnSubmitFn($event)">
</json-schema-form>

If you still face the same issue, can you make a repository to reproduce this issue?

from ajsf.

Kalcode avatar Kalcode commented on August 17, 2024

screen shot 2018-08-30 at 2 52 33 pm

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { ApolloModule } from 'apollo-angular';
import { HttpLinkModule } from 'apollo-angular-link-http';
import { NoFrameworkModule } from 'angular6-json-schema-form';

import { AppComponent } from './app.component';
import { LayoutModule } from './modules/layout/layout.module';
import { ApolloProvider } from './graphql/createApollo';

@NgModule({
  bootstrap: [AppComponent],
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    ApolloModule,
    HttpLinkModule,
    LayoutModule,
    NoFrameworkModule,
  ],
  providers: [
    ApolloProvider,
  ],
})
export class AppModule { }

Sure give me a few minute to get one going.

from ajsf.

stretau avatar stretau commented on August 17, 2024

@hamzahamidi
For me the same, but instead of using "NoFrameworkModule", I only use "Bootstrap4FrameworkModule". get the same npm compile error like @Kalcode

from ajsf.

Selion05 avatar Selion05 commented on August 17, 2024

@hamzahamidi you also have to import the Material frame work module. eg try https://github.com/Selion05/angular-json-schema-test without importing MaterialDesignFrameworkModule


Uncaught Error: Template parse errors:
'json-schema-form' is not a known element:

from ajsf.

hubertkubiak avatar hubertkubiak commented on August 17, 2024

Same for me. I can use "framework="no-framework" but only if I import the "MaterialDesignFrameworkModule" or "Bootstrap4FrameworkModule". The "NoFrameworkModule" doesn't provide the "json-schema-form" element.

from ajsf.

github-actions avatar github-actions commented on August 17, 2024

Stale issue

from ajsf.

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.