Open GongT opened 11 months ago
This is because JSPM generator does not respect the "react" alias when doing an install from the nodemodules provider.
If you instead fo jspm install --provider nodemodules react=preact
it will work correctly in this case I believe.
reproduce steps:
corepack npm install --save react@npm:preact jspm
jspm "install" "--provider" "nodemodules" "react"
result:
source:
https://github.com/jspm/generator/blob/11475a5f47e18a72b38f1860c110dd7fe4d12ef4/src/install/package.ts#L219C13-L219C13
detail:
The new jspm do not download anything to local filesystem, version (or url) of a package doesn't seem to make sense.
I also see some code (many come from 2 years ago) is reading "name" field in package.json, I think they are "happens to be ok".