Closed bennypowers closed 4 years ago
maybe is not specified in peerDependencies but you need to install redux as well
npm i -S pwa-helpers redux
Indeed that would work, but my project doesn't use redux. In fact, I don't even import the redux helpers.
If pwa-helpers relies on redux, perhaps it should be listed as a dependency
I see, you are right then, it shouldn't be an error since you are only importing a module that doesn't use redux.
No, it shouldn't be on dependencies because it would be downloaded and you don't need it if you are not using redux. That's why I suggested to be on peerDependencies, as those can be optional
As a temporary solution try
import { installRouter } from 'pwa-helpers/router';
yeah that does it
Repro:
Result:
Expected: no errors