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.

(JS/TS) Import format not parsed correctly yet

See original GitHub issue

Hey @glato 👋

I did more tests to identify edge cases that would not be covered yet with emerge. I’ll report them here as I find these. If you don’t have time to fix them, I’ll have a look some time myself.

1. Import local index

This is a valid import:

import { GenericId, Age, Country, Amount } from ".";

"." refers to the current folder. In JS, it will pick the index.{js,ts} file.

Today, this doesn’t seem to be resolved. This structure should highlight the issue:

src/
|__ index.js 
|__ math.js    # import { someFunction } from "." 

This would generate 2 orphan nodes. math.js should depend on index.js though.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nicoespeoncommented, May 19, 2021

I gave it a try and it works fine!

1reaction
nicoespeoncommented, May 19, 2021

@glato hey! Sorry I didn’t get back to this.

I think it’s fine to close this. I’ll give it a try this week and get back to you if I find anything 👍 Worst-case scenario: I create a new issue 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.7.0: Imports broken · Issue #437 · bjornharrtell/jsts - GitHub
Npm automatically did a minor bump to 2.7.0 and now my imports are broken: import * as jsts from "jsts"; No-longer works: WARNING...
Read more >
jsts - npm
A JavaScript library of spatial predicates and functions for processing geometry. Latest version: 2.9.3, last published: 2 months ago.
Read more >
How to integrate OpenLayers and jsts in an Angular ...
import Coordinate from 'jsts/org/locationtech/jts/geom/Coordinate';. the variable is defined correctly, but typing is not working. How can I do ...
Read more >
Creating buffers using JSTS + ES6 modules not working
I'm answering my own question as I found a solution. I wrote to the JSTS dev list asking about this issue and they...
Read more >
Troubleshooting SAML 2.0 federation with AWS
Error: Could not parse metadata. This error can occur if you do not format your metadata file properly. When you create or manage...
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