-
Notifications
You must be signed in to change notification settings - Fork 22
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
FilterableListpicker + Webpack #13
Comments
Unfortunately I don't know that this will work with Webpack. Webpack doesnt like builder, and the app uses builder to append the views. I will look into adding webpack support, if you know of a better way to handle this not using builder let me know. |
The only other idea I would have instead of builder to load an .xml file is to define the view as a class. Is it really builder that is causing the issue or could it be that it is not finding the .xml file? |
I'm not really sure. Webpack is essentially a mystery to me: http://davecoffin.com/blog/11-16-17-how-i-got-webpack-to-work |
I managed to get it working by doing a couple things. First, I modified the plugin to use a template rather than the .xml file: var innerComponent = builder.parse(`<GridLayout id="dc_flp_container">...</GridLayout>`); After I did that, a new error showed it's face saying that it could not find require("bundle-entry-points"); I then required the Now I am unsure of how to move forward with this. I could make a pull request moving the xml content into a template, but I am not sure that is the best approach for the plugin. Regardless, I will be making this change to my local environment to allow my project to function. Any ideas? |
Thats great! I mean if it works, then its a better approach than before haha :) |
Hey, so the only changes required here are to parse the xml using |
Ok. 2.0.0 has been deployed including this fix, so I'm going to mark this as closed, feel free to re-open if updating to 2.0.0 doesnt solve the problem. Also, check out the other updates included in 2.0.0! |
I use angular+webpack and @mjrichards91 solution save my day! |
Can someone provide a but more info on the webpack part? I am struggeling with this. |
@KevinBeckers i use angular+webpack and below is how i make it work on my side
at the top of the file |
@frozenmaiden Thank you. I will add a PR for extra docs. |
PR #27 |
I am using webpack to bundle my app and it seems to be having an issue initializing a new instance of the FilterableListpicker. Is there any special configuration required in order to get this plugin working with webpack?
I am using Angular in my app and my best guess right now is that webpack is not including the
filterable-listpicker.xml
file.The text was updated successfully, but these errors were encountered: