(JS/TS) Import format not parsed correctly yet
See original GitHub issueHey @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:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
I gave it a try and it works fine!
@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 😁