-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get self reference modules working #1
Get self reference modules working #1
Conversation
I was partially confused due to a potential spec bug in package.exports that didn't take into account top-level application (without a . main) This now works and has a passing test. Refs: nodejs/node#30633
@MylesBorins, I cloned your branch and ran the test locally. It is failing on my machine. Could this have to do with the |
That is exactly why it is failing. Have not figured out why that breaks it
yet... Definitely a weirdo bug
…On Mon, Nov 25, 2019, 3:20 AM Derek Lewis ***@***.***> wrote:
@MylesBorins <https://github.com/MylesBorins>, I cloned your branch and
ran the test locally. It is failing on my machine. Could this have to do
with the ~/package.json hack?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADZYV3V2HZ57TI6VF3EDADQVODFDANCNFSM4JREVJUA>
.
|
I will take it from here and investigate further, thanks! |
Hi @MylesBorins and @DerekNonGeneric I ended up here while following the trails of I was looking into the implementation to get help on my quest to get 'self reference" working from here https://github.com/MylesBorins/lorem-demo/tree/fc5ed2558670028e3c5bb02f2ae098044d63212a The implementation uses |
Hello @fusionstrings, glad you found your way here!
Nope, it definitely works with Here's a brief explanation that might help clarify what's being described above. The I would recommend checking out the master branch of this repository (the one attached to this thread) to see a currently functional implementation. Just make sure you're on v13.2+. It should be working! I know how confusing this can be, so I've dropped some links below that I hope will clarify what I've written above. Ultimately, the cause of it not working on my end was that the integrated VSCode terminal, which I was using to test this behavior, was using the wrong version. Let me know if there's anything else. :) Note: the |
Thanks a lot @DerekNonGeneric for explaining in detail especially about significance of I got it working now 👍 |
One thing to add --no-esm is a tap specific flag... Not for the nodejs
runtime
…On Mon, Feb 24, 2020, 7:04 AM Dilip Kr. Shukla ***@***.***> wrote:
Thanks a lot @DerekNonGeneric <https://github.com/DerekNonGeneric> for
explaining in detail especially about significance of --no-esm.
I got it working now 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AADZYV3KAKQ74KVDIHEWY43REOZVPA5CNFSM4JREVJUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMXRQYA#issuecomment-590288992>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADZYVYPQTXNIRUDPNBNNN3REOZVPANCNFSM4JREVJUA>
.
|
@MylesBorins Thanks for clarifying. The issue with me was extremely weird. I matched with the code in master branch of https://github.com/DerekNonGeneric/loader339 and my code was using same convention. As @DerekNonGeneric mentioned that he was using VSCode integrated terminal, so was I. I still can't figure out what was wrong 😢but a restart seems to have fixed it for me. |
I was partially confused due to a potential spec bug
in package.exports that didn't take into account top-level
application (without a . main)
This now works and has a passing test.
Refs: nodejs/node#30633