Skip to content
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

How do I load List editor with webpack/browerify? #543

Open
peter4k opened this issue Mar 7, 2017 · 1 comment
Open

How do I load List editor with webpack/browerify? #543

peter4k opened this issue Mar 7, 2017 · 1 comment

Comments

@peter4k
Copy link

peter4k commented Mar 7, 2017

I tried to load the editor using // import List from 'backbone-forms/distribution.amd/editors/list.js';, but I got error "Cannot read property 'editors' of undefined".

Can someone please help me with a proper way to load the list editor?

Thanks.

@glenpike
Copy link
Collaborator

glenpike commented Mar 7, 2017

I don't think the List editor is exposed as a CommonJS module, so I expect this might be problematic.

If you can figure out a way of adding this to the build, that might be a way forward.

Currently https://github.com/powmedia/backbone-forms/blob/master/scripts/build#L43 uses the templates to create distribution/backbone-forms*, but this doesn't happen with the editors: https://github.com/powmedia/backbone-forms/blob/master/scripts/build#L62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants