This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Wrong module resolution #18
Comments
Did you try using jspm/jspm-resolve#master here?
…On Mon, Dec 2, 2019 at 17:33 Dilip Kr. Shukla ***@***.***> wrote:
Could be related with #10 <#10>
.
Following is a simple reproduction
https://github.com/fusionstrings/jspm-resolve-test
https://glitch.com/~jspm-resolve-test
Here
https://github.com/fusionstrings/jspm-resolve-test/blob/master/test.js I
am trying to get resolved module type and despite being package.json.type :
"module", /module.js is resolving to commonjs and missing module is not
throwing error.
Based on my understanding is type is set to "module" it should resolve to
js files as module.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#18?email_source=notifications&email_token=AAESFSWW5ECHUVSF735TWD3QWWEL7A5CNFSM4JULQOJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5PJ2JA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAESFSTSYJYYBENWGIVBUM3QWWEL7ANCNFSM4JULQOJA>
.
|
Sorry @guybedford no, I didn't use github master branch. I used the package from github master branch now.
Following is the check, which you may inspect I have also created a pull request against main repo. #19 |
@fusionstrings you might need to ensure the parent is The symlink issue looks like a bug to me that is unrelated, but would be good to fix too. |
Ok, so after a long debug session I managed to get it working but certainly at the core is conflict between npm install and jspm install. I will post the better finding ASAP. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Could be related with #10 .
Following is a simple reproduction
https://github.com/fusionstrings/jspm-resolve-test
https://glitch.com/~jspm-resolve-test
Here https://github.com/fusionstrings/jspm-resolve-test/blob/master/test.js I am trying to get resolved module type and despite being package.json.type : "module", /module.js is resolving to commonjs and missing module is not throwing error.
Based on my understanding is type is set to "module" it should resolve to js files as module.
The text was updated successfully, but these errors were encountered: