Giter Site home page Giter Site logo

Comments (6)

isaacplmann avatar isaacplmann commented on May 21, 2024

npm WARN doesn't actually stop you from compiling. Do you get any errors when you try to compile and run your app?

from ngx-contextmenu.

LeMalandrin avatar LeMalandrin commented on May 21, 2024

So I get :

ERROR in C:/Users/Coucke/Documents/angular2/chatty/node_modules/ngx-contextmenu/lib/contextMenu.component.d.ts (1,27): Cannot find module '@angular/core/core'.)

Thank you for your reply :)

from ngx-contextmenu.

isaacplmann avatar isaacplmann commented on May 21, 2024

Try version 1.1.0. That should be fixed.

from ngx-contextmenu.

LeMalandrin avatar LeMalandrin commented on May 21, 2024

So I juste try to install with
npm install --save [email protected]

Now it compiles, but I get an error on javascript console :

`Unhandled Promise rejection: Template parse errors: 'ng-template' is not a known element:

  1. If 'ng-template' is an Angular component, then verify that it is part of this module.
  2. If 'ng-template' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("nt.preventDefault(); $event.stopPropagation(); menuItem.triggerExecute(item, $event);">
    [ERROR ->]<ng-template [ngTemplateOutlet]="menuItem.template" [ngOutletContext]="{ $implicit: item }"></ng-temp"): ContextMenuContentComponent@8:12
    'ng-template' is not a known element:
  3. If 'ng-template' is an Angular component, then verify that it is part of this module.
  4. If 'ng-template' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("rap4"
    [class.disabled]="useBootstrap4 && !isMenuItemEnabled(menuItem)">
    [ERROR ->]<ng-template [ngTemplateOutlet]="menuItem.template" [ngOutletContext]="{ $implicit: item }"></ng-temp"): ContextMenuContentComponent@14:12 ; Zone: ; Task: Promise.then ; Value: `

from ngx-contextmenu.

sebsastianek avatar sebsastianek commented on May 21, 2024

Hi @LeMalandrin , ng-template has been introduced in angular 4.0.0 and this is the version to go with the plugin

for angular 2 You can try https://github.com/isaacplmann/angular2-contextmenu i guess

from ngx-contextmenu.

isaacplmann avatar isaacplmann commented on May 21, 2024

@sebsastianek Thanks for pitching in. @LeMalandrin yes, you need to upgrade to Angular 4.x to use ngx-contextmenu - For angular 2.x you can use angular2-contextmenu.

from ngx-contextmenu.

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.