Problem with modules starting with @
See original GitHub issueI’m trying to use Fable with turfjs but the problem is that the package start with @ (@turf/turf) hence the ts2fable generates invalid F# code like
// ts2fable 0.6.1
module rec ModuleName
open System
open Fable.Core
open Fable.Import.JS
let [<Import("*","module")>] ``@turf/along``: @turf_along.IExports = jsNative
// many more similar lines
There exists old package with definition file for turf without the @'s and F# produces no errors but fable complains following while I want to call
turf.point( cords)
ERROR in ./src/App.fs
Module not found: Error: Can’t resolve ‘module’ in …
Do I have to somehow instruct fable that it should point to specific node module (turfjs here)? I’m using the minimal fable template
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Use of @ symbol in Node module names [duplicate]
Scoped packages in npm are preceded by an '@' symbol. A scope allows you to create a package with the same name as...
Read more >Common TypeScript module problems and how to solve ...
Avoid common problems in build processes in TypeScript using the TypeScript compiler and module system.
Read more >Why Can't Python Find My Modules?
A common error that new Pythonistas will come across is that the packages they think they've installed are not actually being recognized by...
Read more >How to resolve "Cannot find module" error in Node
The issue is that Node is unable to find the module that you are trying to import into your Node application. The most...
Read more >Error: cannot find module [Node npm Error Solved]
In my case, I got it like this "Module not found: Error: Can't resolve 'react-icons/fa' in 'C:\Users\user\Desktop\Projects\Address Locator\ ...
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
You need to replace
module
probably by@turf/along
inlet [<Import("*","module")>]
It is working but I still have some obstacles not knowing it is the lack of my experience with those tools or the binding inaccuracy problem. Following is compiling only with the casting as turf.featureCollection returns ‘obj option’ instead of ‘Point’