Comments (5)
@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.
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.
You should run:
tsd install jquery --save
or
typings install dt~jquery --global --save
from angular-froala-wysiwyg.
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.
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)
- Error When copy and pasted the content in floara editor
- Support for Angular 16 and Ivy HOT 21
- Link edit pop up does not show up with Bootstrap modal HOT 1
- Cannot read properties of undefined error when "clearFormatting" is clicked
- Installation with Angular CLI, not all toolbar items visible HOT 1
- Unexpected value 'FroalaEditorModule' imported by the module 'AppModule'. Please add an @NgModule annotation.
- msal issue in Angular 16 HOT 1
- Whitespace is not rerndered in the editor under certain condition
- v4.1.0 Not working for most options HOT 7
- Editor disappears, reproducable
- onkeyup event expecting incorrect type
- Warning at build time about commonJS
- Create License File HOT 2
- Cannot understand licensing
- Build warnings under Angular 17
- Froala showing 'Something went wrong!' went upload is successful.
- Disabled Reactive Form is not working
- Page break functionality is not available in froala with Angular 17 implementation
- Replacing an image with a caption takes you to the beginning of the page (unpredictable scrolling)
- editor.directive.d.ts:43:18 - error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments. HOT 1
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 angular-froala-wysiwyg.