Git Product home page Git Product logo

ang-jsoneditor's Introduction

Hi there 👋

It's Max here! Se below to get an overview over my open source projects!

Contact me via

Current Projects

Past Projects

ang-jsoneditor's People

Contributors

17radix avatar angular-cli avatar deanist avatar hc-satoshiwatanabe avatar intellix avatar jabiinfante avatar jeffreymercado avatar maaxgr avatar manishit56 avatar mariohmol avatar michael-spengler avatar osmanraifgunes avatar rr-hornback avatar schobster avatar snyk-bot avatar vamcs avatar vrockai avatar zahnrodolfo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ang-jsoneditor's Issues

Support for Angular 13

Hello,

I am currently starting a new project and decided to work with the latest Angular (13 at this moment) and my next steps will require me to make a JSON editor ... or use one

I saw your repo fork and I also see that for Angular 13 support but it says "Work in Progress" and there is no npm command for Angular 13.

So I tried running using Angular 12 with npm install @maaxgr/ang-jsoneditor@12 and the output was the one below and in the end my ng serve just hangs

$ ng serve
⠙ Generating browser application bundles (phase: setup)...(node:39691) UnhandledPromiseRejectionWarning: Error: The target entry-point "@maaxgr/ang-jsoneditor" has missing dependencies:
 - jsoneditor

    at TargetedEntryPointFinder.findEntryPoints (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:4616:13)
    at file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:5008:33
    at SingleProcessExecutorSync.doExecute (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:14633:23)
    at file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:14654:35
    at SyncLocker.lock (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:14884:14)
    at SingleProcessExecutorSync.execute (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:14654:19)
    at mainNgcc (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:15985:19)
    at Module.process2 (file://{path-to-angular-project}/test-json-editor/node_modules/@angular/compiler-cli/bundles/ngcc/index.js:16050:10)
    at NgccProcessor.processModule ({path-to-angular-project}/test-json-editor/node_modules/@ngtools/webpack/src/ngcc_processor.js:182:27)
    at {path-to-angular-project}/test-json-editor/node_modules/@ngtools/webpack/src/ivy/host.js:146:18
(Use `node --trace-warnings ...` to show where the warning was created)
(node:39691) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:39691) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠇ Generating browser application bundles (phase: setup)...

Do you have any plans on making a stable npm package for Angular 13?
You also say in the repo description

This is a fork of mariohmol's ang-jsoneditor with support for Angular 11, 12 and 13.

Do you have any tips on how to get it to work on Angular 13?

Thanks a lot

how to use onCreateMenu to filter the menus?

I want to delete some menus when operating, but when i use onCreateMenu function,It has no any parameter but the ordinary liberary has parameter,How can I use it?

In ordinary liberary : this.editorOptions.onCreateMenu = (items, node) => { items.filter()... }

but now:

image

Can anyone help to use onCreateMenu to filter the menus? Thanks!

Warning: Option "onChangeJSON" is not applicable to modes "text" and "code".

The object includes a property for onChangeJSON and whether it's set or not, a console warning is triggered if the modes array includes "text" or "code". I'm not using onChangeJSON so it's kind of bizarre to be getting that warning.

Option "onChangeJSON" is not applicable to modes "text" and "code". Use "onChangeText" or "onChange" instead.

unknown this.editor referencing.

image
it seems this.editor is undefined and being reference here again with
image

Is there i away to fix this one?
Is not causing any functionality issues so far, but i just want to make the console cleaner.

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.