Closed jonboiser closed 6 years ago
Hi @jonboiser a new version 2.1.1 has been published. This has a massive refactor work and during that time there were some bugs found and squashed.
One of them sounds like what you're experiencing. Could you upgrade and test to see if it is still an issue.
Thanks!
@jonyeezs I just tried it out and it seems to be working now. Thanks!
Description
If I have files in this structure:
Where all of the JS files use ES6 import, attempting to import a named export
foo
inlib.js
from within the nestedmain/main.js
does not work since it is falling into the thelookupCommonJS
utility (https://github.com/nkt/atom-autocomplete-modules/blob/master/src/utils/export-module-completion.js#L86) and fails because of theimport
keywords inlib.js
Ostensibly,
lib.js
should be handled as an ES6 module.However, doing the same thing from the unnested
main.js
does not have this problem.Steps to Reproduce
foo
inlib.js
Conversely, try the same thing on this file:
https://github.com/jonboiser/simple-repo/blob/master/main.js
And get the expected behavior.
Expected behavior: [What you expect to happen]
No error in the console; get autocompletion suggestion in buffer
Actual behavior: [What actually happens]
Error in the console; no autocompletion suggestion in buffer
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Console errors
Versions
macOS 10.13.14
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.