-
Notifications
You must be signed in to change notification settings - Fork 222
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
warning : export 'ModalTemplate' was not found in 'ng2-semantic-ui' #171
Comments
@edcarroll This is a great project, thanks for all your hard work. I'm getting the same error. |
This is a webpack issue due to the fact that interfaces in Typescript are erased upon compilation. A workaround (for now) is to make a new file called import {ModalTemplate} from "ng2-semantic-ui";
export {ModalTemplate}; Then whenever you need I'll try to get a fix for this sorted next week, am currently on holiday so a workaround will have to do for now :) |
@edcarroll Thanks a lot 👍 export declare class ModalTemplate<T, U = undefined, V = undefined> {
context: T;
constructor(context: T);
} File: node_modules\ng2-semantic-ui\dist\modules\modal\index.js File: node_modules\ng2-semantic-ui\dist\modules\modal\public.js Added: Working fine for me. |
Thanks for solutions. I will check for that solution. And one more thing is we don't have one type of multi select drop down is available. Do I need to open a new issue? |
@dev-fullstacktechnology apologies, can't work out what you mean by your last message, is there a specific style of multi select not working? |
This stops it from being erased by Typescript, so when people use it in decorators it still exists. Closes #171
This stops it from being erased by Typescript, so when people use it in decorators it still exists. Closes #171
|
@dev-fullstacktechnology I see what you mean, essentially an option for it to not remove the labels from the list. Could you please open a separate issue as a feature request so I can track it there and get it into a release? |
ok, That is good for us |
This stops it from being erased by Typescript, so when people use it in decorators it still exists. Closes edcarroll#171
Bug description: importing ModalTemplate cause warning for
export 'ModalTemplate' was not found in 'ng2-semantic-ui'
I had this error when I am using template based modal method for dialog.
I am not getting this type of error in plunker so I was putting snapshot of my project code.
Version of Angular, ng2-semantic-ui, Semantic UI
Angular: 4.2.2
ng2-semantic-ui: 0.8.2
Semantic UI: 2.2.2
I looked on internet but there is no such answer found for my solution.
Send me a reply if you need any other detail related to issue.
The text was updated successfully, but these errors were encountered: