Closed mikesol closed 4 years ago
Unmock fails to compile because of a type import
tsc
Should compile.
Fails with this error:
node_modules/unmock-node/dist/backend.d.ts:2:37 - error TS2307: Cannot find module 'unmock-core/src/interceptor'. 2 import { IInterceptorFactory } from "unmock-core/src/interceptor";
To fix the bug, I'd recommend hoisting all imports to a top-level namespace. As the src directory is not packaged (only the dist one is), unmock-node cannot find unmock-core/src.
src
dist
unmock-node
unmock-core/src
Description
Unmock fails to compile because of a type import
Steps to Reproduce
tsc
Expected Result
Should compile.
Actual Result
Fails with this error:
Additional Context
To fix the bug, I'd recommend hoisting all imports to a top-level namespace. As the
src
directory is not packaged (only thedist
one is),unmock-node
cannot findunmock-core/src
.