Property 'bracket' does not exist on type 'JQuery'
Installed npm jquery, npm jquery-bracket
but it is showing the following error: Property 'bracket' does not exist on type 'JQuery'.
Same here. Want to use it in Angular4/5, but can't get it working. Get a lot of error and jquery-bracket can't be imported as library.
The library tries to get jQuery from global scope. It's not compiled as an importable module. If you're using e.g. webpack to compile your project, you need to indicate this.
https://github.com/teijo/jquery-bracket/blob/1be237773147308691e6cc6f810baca9232e07df/src/jquery.bracket.ts#L1549
Thank you Teijo, got it working :-)
Hey im having the same issue here, i cant import the package, im using webpack too, and i added jquery. Im lost in the link that you shared. could you elaborate a little ? Thanks
@ricardoglez ah, hadn't used permalink so the file had changed since the comment. Updated the link now.
Basically the file expects to find jQuery object, which you can probably configure for Webpack with this https://github.com/webpack/docs/wiki/shimming-modules#plugin-provideplugin
thanks @teijo, i ve configured webpack with the import-loader plugin and it works just fine, thanks for the quick answer ! :+1: