Giter Site home page Giter Site logo

Add Pointer Events about fable-react HOT 3 CLOSED

cr3wdayt5p avatar cr3wdayt5p commented on August 19, 2024
Add Pointer Events

from fable-react.

Comments (3)

alfonsogarciacaro avatar alfonsogarciacaro commented on August 19, 2024

I think that'd be fine. Would it be possible for you to send a PR? Many Fable projects have moved to Feliz so there are not many maintainers for this repo now.

from fable-react.

cr3wdayt5p avatar cr3wdayt5p commented on August 19, 2024

Sure, I would like to start to contribute to the Fable community. I am coming from Elm so I actually prefer the Fable.React syntax over Feliz.

But I am new to the dotnet and Fable ecosystems, so I am having trouble testing my changes to Fable.React in my project. I have changed <PackageReference Include="Fable.React" Version="9.2.0"/> to <ProjectReference Include="../../../fable-react/src/Fable.React/Fable.React.fsproj"/>

The Fable compiler finds my local copy of Fable.React but it appears to try to compile my other dependencies first. I get a bunch of errors indicating the order is wrong, e.g.: Fable.Elmish.React.4.0.0/common.fs(3,12): (3,17) error FSHARP: The namespace 'React' is not defined. (code 39)

Can you point me in the direction of a good blog post explaining how to test local changes to a Fable package?

EDIT: Never mind. I found this: https://stackoverflow.com/questions/43400069/add-a-package-with-a-local-package-file-in-dotnet

from fable-react.

alfonsogarciacaro avatar alfonsogarciacaro commented on August 19, 2024

Yes, this is quite a pain with Nuget. AFAIK there's no built in solution to test local packages, so you need to create the package locally and add the local sources in the Nuget.config (and make sure the package is not cached every time you change it).

To make this easier for Fable I added a --replace option that can replace a package with a local project. Example:

dotnet fable watch src --replace Fable.React:path/to/you/local/Fable.React.fsproj

The only problem is this is a Fable-only mechanism. So it will work for Fable compilation but your IDE will still complain the new Props don't exist.

from fable-react.

Related Issues (20)

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.