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

update the package to export ES6 modules #18

Open
monecchi opened this issue May 4, 2022 · 2 comments
Open

update the package to export ES6 modules #18

monecchi opened this issue May 4, 2022 · 2 comments

Comments

@monecchi
Copy link

monecchi commented May 4, 2022

I've refactored a nodejs project to use ES6 modules which depends on mongoose-slug-generator.

I'm getting an error when trying import slug from 'mongoose-slug-generator;

Any chances of having the package updated in the near future to comply with ESM?

@alextomas80
Copy link

import * as slugGenerator from 'mongoose-slug-generator';

@monecchi
Copy link
Author

monecchi commented Nov 3, 2022

@alextomas80 Thanks for pointing it out! Indeed, that was the solution!

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