-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using ngSemantic with Webpack #49
Comments
Install both semanticui and ngsemantic from npm: Assuming you installed semanticui in root folder of you project (which is default), then you need to include semanticui assets from dist folder within your main.ts (src/main.ts) angular2 file:
After that you use it in ng2 app like described in readme https://github.com/vladotesanovic/ngSemantic#use |
Hey i did all that, but presently it is showing me this error ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ |
Are you using that 'null-loader' loader in your webpack config? (I dont even have it installed in my setup) |
Yes I am using it as I have jQuery installed directly with npm & typings On 18 Aug 2016 14:29, "Daniel Zolnjan" notifications@github.com wrote:
|
If its just for jquery you can remove null-loader and import jquery using the ProvidePlugin (standard jquery import setup) |
Presently after doing all the steps above mentioned I am getting this: Uncaught TypeError: core_1.NgModule is not a function For ng-semantic.js : NgSemanticModule = __decorate([ |
Hey, Last night i updated everything on Angular RC.5... There is no backward compitability so you will need to update your app too. On 19 Aug 2016 11:59, "Beck Technology" notifications@github.com wrote:
|
Could you please add how to install ngSemantic in webpack to readme. Angular CLI has switched to webpack and I am not getting ngSemantic to work any more. |
Oh, things are changing to fast :) I will update my README for webpack configuration. Best regards! Check it out: www.pinmap.io http://www.pinmap.io On 19 August 2016 at 15:53, papoola notifications@github.com wrote:
|
Repository generated by Angular CLI with ngSemantic included https://github.com/vladotesanovic/angular2-cli-webpack // @todo |
Thank you @vladotesanovic ! I will check it out tonight. In the mean time you might wanna check angular/angular-cli#1747 once this has been merged it will make importing libraries JS and CSS much easier |
Yep, i saw that. Repository is just proof, i will try to improve it. If you find anything Best regards! Check it out: www.pinmap.io http://www.pinmap.io On 21 August 2016 at 19:45, papoola notifications@github.com wrote:
|
Hi,
I am using the angular2 webpack in my project. Besides using npm install for this library, how do i setup ngSemantic for webpack?
The text was updated successfully, but these errors were encountered: