jQuery UI Widgets › Forums › Getting Started › npm and bundling
Tagged: angular 2, jqwidgets, Node.js, npm, npm package, package.json, system.config.js, webpack
This topic contains 6 replies, has 4 voices, and was last updated by Dimitar 8 years, 7 months ago.
-
Authornpm and bundling Posts
-
Hey, i have recently tried the npm package of jqwidgets.
However when i import it into the file it does not recognice the module.
After i looked it looks like the main field in package.json is missing.My question is how is the situation for the node module and usage with bundlers.
As i require or import the modules (Es6). So theres no script tags.I would like some information about it.
I do get the message
Uncaught TypeError: Cannot read property ‘jqx’ of undefined
I have tried to require jquery and a libary that depends on it. So i did require jqurey-ui and used it. It worked fine.
So i hope to get some help on using the jqwidgets-framework module.Hello stian64,
Thank you for your feedback. In the next version of jQWidgets, the main field will be specified in package.json. It will point to the file jqx-all.js.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi, can you help me and share the full content of package.json file because everytime i have issues in starting npm (version 4.1.2) node (version 7.5.0).
Best regards,
Mohamed
Hi Mohamed,
Are you not able to install the jqwidgets-framework npm package by running:
npm i jqwidgets-frameworkFor more information, please refer to this page: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/package-managers/npm-tutorial.htm. You can also download jQWidgets through Bower or NuGet.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimiter How to include this package in system.config.js?
Hi praneeth,
Perhaps the following article can be helpful to you: https://medium.com/@s_eschweiler/using-external-libraries-with-angular-2-87e06db8e5d1.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.