Open ghost opened 5 years ago
@ArThoX - this is most likely an issue with your TypeScript configuration or transpilation. Unfortunately, I am not well-versed in TypeScript, or tsconfig
options for that matter, so I will need to delve into that before I can propose a solution.
Does it still fail if you make the following change?
- "moduleResolution":"Node",
+ "moduleResolution":"Classic",
@clarketm The error persists.
However, I think this is simply due to the fact that your package.json does not defines d.ts typings. Nothing to worry about (if you don't support typescript).
@ArThoX - I did not intend to not support TypeScript imports. I would like to add typing to this project if it adds benefit, which it sounds like it does. If this is something you have expertise in, then I would greatly appreciate a PR; otherwise, I can work on getting this added once I get time can brush-up on the syntax.
Describe the bug When using
import createSagaMonitor from "@clarketm/saga-monitor"
for some reasons at runtime the saga-monitor.js is not resolved what results in a "not found" error.To fix the error I have to:
import createSagaMonitor from "@clarketm/saga-monitor/dist/saga-monitor.js";
Am I doing something wrong or is that a real issue, could you please advice ?