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

Returns empty object {} when using import r from "regexr" #4

Closed
chriscalo opened this issue Jan 31, 2019 · 1 comment
Closed

Returns empty object {} when using import r from "regexr" #4

chriscalo opened this issue Jan 31, 2019 · 1 comment

Comments

@chriscalo
Copy link

chriscalo commented Jan 31, 2019

(version 1.4.5)

When importing as recommended in the docs, I get an empty object:

import r from "regexr";
console.log(r); // => {}

However, importing from regexr/index works as expected:

import r from "regexr/index";
console.log(r); // => ƒ regexr(literals) { … }

I'm not sure how to fix this. Is package.json not pointing to the correct file for import?

@chriscalo
Copy link
Author

chriscalo commented Nov 24, 2019

Wasn't able to repro this in Node.js. May have been an issue with webpack.

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

1 participant