Git Product home page Git Product logo

google.maps's Issues

MapTypes.fs Interface Generator Bug

Hi,

I've been trying to use google maps' style types, and I believe you have an unwanted line in MapTypes.fs at line 26:

  24: let MapTypeStyler =
  25: Config "MapTypeStyler"
  26: |+> Static [Constructor T]

If you comment out line 26 and rebuild, clients can use the MapTypeStyler type, otherwise there is a compiler error because of the extra constructor definition.

Here is some code that currently fails to compile (fixed above):

    [<JavaScript>]
    module GoogleMaps =
        open WebSharper.JavaScript
        open WebSharper.Google.Maps

        let mts = new MapTypeStyler()

Build fails with WebSharper 7.0.3 beta3

hi!

I'm trying to build WebSharper.Google.Maps targeting WebSharper 7.0.3 beta3 and after removing some stale references from paket.references files, I'm facing this error message:

WEBSHARPERTASK : WebSharper error WS9001: Error running WIG assembly: System.ArgumentException: An item with the same key has already been added. Key: { Assembly = "WebSharper.Google.Maps" FullName = "WebSharper.Google.Maps.Map" } at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at [email protected](Boolean intfAsClass, TypeDefinition typ) at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc2 action, IEnumerable1 source) in D:\a_work\1\s\src\FSharp.Core\seq.fs:line 603 at WebSharper.Compiler.Reflector.trAsm(IDictionary2 prototypes, AssemblyDefinition assembly, Boolean isTSasm) at WebSharper.Compiler.Reflector.TransformAssembly(IDictionary2 prototypes, AssemblyDefinition assembly) at WebSharper.InterfaceGenerator.Compiler.Compile(Resolver resolver, CompilerOptions options, Assembly assembly, String filePath, FSharpOption1 originalAssembly) at WebSharper.InterfaceGenerator.Compiler.Compile(CompilerOptions options, Assembly assembly, String filePath, FSharpOption1 original) at WebSharper.Compiler.CommandTools.RunInterfaceGenerator(AssemblyResolver aR, FSharpOption`1 snk, WsConfig config, LoggerBase logger) at [email protected](Unit unitVar0) [/home/vagrant/websharper/google.maps/WebSharper.Google.Maps/WebSharper.Google.Maps.fsproj::TargetFramework=netstandard2.0]

I've also removed the net461 reference, leaving only netstandard20.

The screenshot lists (grep command) where this namespace is located:
Screenshot_20240102_212230

My (wild) guess is the compiler is having problem resolving module aliases.

Attached, you find the complete log from the dotnet fake build output.
buid.log

My setup:

> uname -a
Linux vagrant 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

> dotnet --version
7.0.114

Is there any workaround for this issue?

Thanks,
Alex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.