You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the new version of Yarn the module resolution has changed by default to a bespoke system called PnP. When using PnP it's no longer possible to implicitly rely on dependencies (i.e. without specifying them in package.json).
The upshot is that with PnP enabled, setting psc: "psa" in this loader doesn't work: it throws the spawn psa NOENT error that you usually see if purescript-psa isn't installed. I think this is because, even if the consuming project installs purescript-psa, purs-loader is still implicitly depending on that module existing.
A possible resolution (I'd need to test it) would be to list purescript-psa as either a dependency or peer dependency of this package.
(Side note: I assume the same issue would occur with psa: "purs", and I assume the same fix - adding purescript as a peer dependency - would sort it out.)
The text was updated successfully, but these errors were encountered:
In the new version of Yarn the module resolution has changed by default to a bespoke system called PnP. When using PnP it's no longer possible to implicitly rely on dependencies (i.e. without specifying them in
package.json
).The upshot is that with PnP enabled, setting
psc: "psa"
in this loader doesn't work: it throws thespawn psa NOENT
error that you usually see ifpurescript-psa
isn't installed. I think this is because, even if the consuming project installspurescript-psa
,purs-loader
is still implicitly depending on that module existing.A possible resolution (I'd need to test it) would be to list
purescript-psa
as either a dependency or peer dependency of this package.(Side note: I assume the same issue would occur with
psa: "purs"
, and I assume the same fix - addingpurescript
as a peer dependency - would sort it out.)The text was updated successfully, but these errors were encountered: