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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual function cannot be imported with ESM imports #38

Open
lpellegr opened this issue Jul 17, 2018 · 3 comments
Open

Individual function cannot be imported with ESM imports #38

lpellegr opened this issue Jul 17, 2018 · 3 comments

Comments

@lpellegr
Copy link

lpellegr commented Jul 17, 2018

Expected behavior 馃樃

Individual functions import with ECMAScript modules work in browsers.

Actual behavior 馃樋

Global import using default export for voca is working:

import voca from 'voca';

However, individual function imports with ESM modules is not working:

Uncaught SyntaxError: The requested module '../node_modules/voca/starts_with.js' does not provide an export named 'default'

Steps to reproduce 馃懛

import startsWith from 'voca/starts_with';

Technical details: 馃敡

Browser/OS type: Chrome 67
VocaJS version: 1.4.0

@lpellegr lpellegr changed the title Individual function imports are not working with ES6 module imports Individual function cannot be imported with ES6 module imports Jul 17, 2018
@lpellegr lpellegr changed the title Individual function cannot be imported with ES6 module imports Individual function cannot be imported with ES6 imports Jul 17, 2018
@panzerdp
Copy link
Owner

Thanks for reporting it. I will take a look when I have a bit more time available.

@lpellegr lpellegr changed the title Individual function cannot be imported with ES6 imports Individual function cannot be imported with ESM imports Nov 9, 2018
@lpellegr
Copy link
Author

lpellegr commented Nov 9, 2018

@panzerdp Any updates?

@ronmmn
Copy link

ronmmn commented Dec 27, 2018

can you please explain how to add and start using your wonderful package in AURELIA ?
where and which configurations should i do. thx

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

3 participants