question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gets tripped up by imports that don't assign to variables

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
lencionicommented, Jul 20, 2016

@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!

1reaction
trotzigcommented, Jul 20, 2016

Nope, I wasn’t planning on doing so. Go ahead!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found