Comments (12)
A less strict pinning strategy could be:
{
"sdk": {
"version": "6.0.0",
"rollForward": "latestMinor"
}
}
from femto.
Nice. I'll give it a try tomorrow.
Edit: I gave it a try and it works. It is not a thorough test, but it is good that I can use .NET 7 issue now. Thanks.
from femto.
The issue I had with Femto silently not updating the packages seems to be exactly this. I can confirm that trying to resolve a project with the prerelease 4.0.0 Fable and the global.json
deleted causes Femto to not resolve the NPM packages. As soon as I downgraded, it started working again.
from femto.
Fixed as of Femto v0.17.0 🚀 which now supports projects targeting net7.0
from femto.
I found an issue. Check out: https://github.com/mrakgr/SAFE-TodoList/tree/671b8bc4cd553aef7e7b329a5c0b4aa2b5b2cbd8
PS E:\Webdev\Fable\Safe Stack Examples\SAFE-TodoList> dotnet femto src/client --resolve
[16:30:36 INF] Analyzing project E:/Webdev/Fable/Safe Stack Examples/SAFE-TodoList/src/client/Client.fsproj
[16:30:36 INF] Running dotnet restore against the project
[16:30:41 INF] Using npm for package management
[16:30:41 INF] Found package.json in E:\Webdev\Fable\Safe Stack Examples\SAFE-TodoList
[16:30:41 INF] Npm packages need to be restored first for project analysis
[16:30:41 INF] Restoring npm packages using 'npm install' inside E:\Webdev\Fable\Safe Stack Examples\SAFE-TodoList
[16:30:48 INF] ✔ Required packages are already resolved
PS E:\Webdev\Fable\Safe Stack Examples\SAFE-TodoList>
When I run this, it looks like it finishes correctly, but it doesn't install react
and react-dom
properly. If I add the globals.json
file it starts working again.
from femto.
Also, Fable.Elmish.Debugger
requires the remotedev
package, but it doesn't get resolved even with globals.json
. I wonder if it is missing in the package metadata?
from femto.
@mrakgr For Fable.Elmish.Debugger
, this is because the package doesn't have the Femto
metadata.
This is because the project was created before Femto. In general, the remotedev
package is injected by the browser extension or webpack I don't remember.
from femto.
@mrakgr does it work when you manually npm install
?
from femto.
@Zaid-Ajaj That wouldn't add the react
and react-dom
dependencies to package.json
. I need Femto for that. But once they are there it would work.
from femto.
@mrakgr first npm install
then femto --resolve
should get you the right packages even after npm install
is done but I agree, femto should do npm install on its own when needed
from femto.
@Zaid-Ajaj I didn't realize that. With .NET 6 it works right away using just --resolve
.
from femto.
@mrakgr yeah even if you mess up your npm package versions manually, femto --resolve
will get the right versions back. I will see why femto isn't automatically executing npm install
from femto.
Related Issues (20)
- Failed to retrieve information ... | Add verbose mode? HOT 4
- Femto force user to explictly install a dependencies and not have it as transitive (from npm POV) HOT 5
- Use pnpm instead of npm HOT 6
- Cannot specify Nuget package version or --prelease mode HOT 5
- Femto reports an error about parsing an unrelated package.json
- Exit code HOT 2
- Support pip for Fable-to-Python HOT 2
- dotnet tool restore femto results in a nuget error: The repository primary signature validity period has expired. HOT 4
- Where to find `package.json`? HOT 1
- Yarn / NPM detection is not aware of workspaces HOT 1
- femto resolve not working HOT 2
- is there equivalent to femto --update HOT 2
- Can't retrieve information HOT 8
- Little bug in help display HOT 1
- Femto fails to retreive scoped package information with pnpm HOT 6
- Conflicting dependencies across nuget packages causes infinite re-installation of packages HOT 7
- MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. HOT 11
- handle git overrides in npm versions
- Support package.{yaml,json5} HOT 2
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 femto.