Comments (3)
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.
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.
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)
- React Server Components integration HOT 2
- Can't figure out how to wrap my view with a Higher Order Component HOT 4
- JsInterop helper for wrapping a higher order component HOT 2
- Can't reference React in Fable HOT 2
- Fable.ReactServer.cssProp very slow HOT 4
- Add Custom DU to DOMAttr HOT 1
- FunctionComponent.Lazy and SSR HOT 1
- Update samples to Fable 3
- ReactDOM.hydrate is no longer supported in React 18 HOT 17
- Can't update shared state passed with useContext? HOT 3
- Q: Use ReactElement import member for Storybook HOT 3
- Missing 'open' from Fable.React.Props? HOT 2
- Last Fable.React upgrade breaks my code HOT 7
- Publish source files from Fable.React.Types and Fable.ReactDom.Types to nuget HOT 5
- Fable.React version 8 depends on React.Dom gte 18 lt 19 according to femto
- Why is useCallback not implemented? HOT 3
- How to obtain a component ref in a function component? HOT 5
- FunctionComponent.Of functions cache breaks reusable code HOT 1
- voidEl breaks with: $ELEMENT is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fable-react.