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

Support for modules/import #18

Open
pke opened this issue Apr 28, 2020 · 2 comments
Open

Support for modules/import #18

pke opened this issue Apr 28, 2020 · 2 comments

Comments

@pke
Copy link

pke commented Apr 28, 2020

It seems mochista is not yet ready for modules?
Using import is not possible it seems.

@laggingreflex
Copy link
Owner

Yes, that is the case I'm afraid. Since none of the underlying libraries support it (mocha, c8) it doesn't either.

I'm not sure if it works, but you can try https://github.com/standard-things/esm. (I remember running into issues a long time ago when I tried it, maybe it works now)

You can also try running node with the appropriate flags needed to enable ESM module support natively. If node natively supports it, it should work.

@pke
Copy link
Author

pke commented Apr 29, 2020

So that means upgrading node to the newest version to get import support. I'll try.

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