Giter Site home page Giter Site logo

Comments (5)

manuelfink avatar manuelfink commented on May 14, 2024 1

@stefanneculai I suggest reopening this. I do have the same error on latest angular-cli and angular 2.2.3.

I think you may like to add the typing as a dependency of your lib?

I guess installing typings with npm may solves this npm install --save-dev @types/jquery However I'm not sure whats the best practise for this. Similar discussion is on stackoverflow http://stackoverflow.com/questions/38283236/typescript-and-jquery-compile-error-cannot-find-name

from angular-froala-wysiwyg.

florinpopescu avatar florinpopescu commented on May 14, 2024

Hi @swapp1990 ,

I am only reproducing this if I remove 'jquery' dependency from typings.json.
Your typings.json should look like this:

{
  "globalDependencies": {
    "core-js": "registry:dt/core-js#0.0.0+20160602141332",
    "jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
    "jquery": "registry:dt/jquery#1.10.0+20160704162008",
    "node": "registry:dt/node#6.0.0+20160621231320"
  }
}

Can you please check it?

Thanks!

from angular-froala-wysiwyg.

stefanneculai avatar stefanneculai commented on May 14, 2024

You should run:

tsd install jquery --save
or
typings install dt~jquery --global --save

from angular-froala-wysiwyg.

svillagracia avatar svillagracia commented on May 14, 2024

I ran the commands and installed both but when I rand the tsd install jquery --save command it returned >> zero results
When I run typings install dt~jquery --global --save it seems to install, but I'm still getting the error. Or it sometimes says Attempted to compile "jquery" as an exxternal module, but it looks like a global module. You' need to enable the global option to continue

I'm using Angular-CLI

from angular-froala-wysiwyg.

squarewave24 avatar squarewave24 commented on May 14, 2024

i installed everything successfully. tried a few ways to install it which it did successfully

├── core-js (global)
├── jasmine (global)
├── jquery (global)
└── node (global)


but still can't get rid of the error in the compiler.

maybe it needs to be referenced somewhere in the app?

declare var $:JQueryStatic;

[ts] Cannot find name JQueryStatic;

from angular-froala-wysiwyg.

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.