Gets tripped up by imports that don't assign to variables
See original GitHub issueI have seen the following code:
import './foo';
which import-js doesn’t think is an import statement, causing problems with things like sorting and grouping.
Issue Analytics
- State:
- Created 8 years ago
- Comments:16
Top Results From Across the Web
How do I import variable packages in Python like using ...
To get a "variable variable"'s value (or the value of any other expression) you can use the eval function. foo = "Hello World"...
Read more >Error message for assigning to an imported variable is ...
The true reason of the error is that it is an imported variable, so it would be better if we changed the message...
Read more >Everything you wanted to know about variable substitution ...
This is where many new people get tripped up. First let me show you what they think should work (and at face value...
Read more >Introducing Sass Modules
Import files with @use · The file is only imported once, no matter how many times you @use it in a project. ·...
Read more >Defining Main Functions in Python
Python programmers have come up with several conventions to define this ... Once the Python interpreter imports the file, you can use any...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@rhettlivingston You’ve made good contributions to this project, so I’ve added you as a collaborator! We prefer to send most changes through PRs so that they can be code reviewed by others before hitting master. Welcome aboard!
Nope, I wasn’t planning on doing so. Go ahead!