-
Notifications
You must be signed in to change notification settings - Fork 490
CommonJS formatted import resulting in build errors #464
Comments
I'm not an user of gulp (more a grunt user), so I can't really help you on this one 😞 |
Hello again - now that I have more practice with Browserify and the way it conceives web components in the CommonJS format I think I have a simple fix that would make this library available to those using it. This example is taken from the angular ui-router project, but it illustrates supporting CommonJS modules in an easy way:
In this case it would be Is there any way that you could add those lines to your release and publish it to NPM? I know that I would be very grateful and believe many others would be too. |
I can't publish as there are already someone else that published the project and I don't have the permission to publish in this module. |
@l-lin what is your npm username so I can make you an owner of the npm package? @denver-HJS I've synced my fork and published v0.5.1 to npm. |
@aaronroberson, it's the same as my github username: l-lin |
You are now an owner! Feel free to update it to point to your repo instead On Wed, Dec 9, 2015 at 8:24 AM Louis LIN [email protected] wrote:
|
Thanks @aaronroberson 👍 |
Awesome, many thanks to both of you for the follow up on this. :) |
Hi, first off I'm very happy with this project and thank you for continuing to support it!
The issue I'm having is trying to import the Angular Datatables library as a web component. I am using Browserify in my Gulp build, which relies on CommonJS style module imports/exports. That being said, my Angular module is defined like so:
This has worked thus far with all of the other NPM packages included in the requires array. However, with the addition of the 'angular-datatables' dependency my Gulp build will only print out this nondescript error message
The actual bundling of the modules occurs here (Note: I've taken off both the ngAnnotate and babelify transforms, but the error still persists):
If you have any ideas on where I could be going wrong please advise.
The text was updated successfully, but these errors were encountered: