Can't import Yarn workspace subdirectories with TypeScript

Viewed 116

I'm using Yarn workspaces on a Node project with TypeScript. One of my workspaces is "framework". When I use import App from "framework"; from other workspace, it runs correctly.

However, if I want import a class located on a framework's subdirectory like this: import { Configuration } from "framework/config" I get a not found error.

Is it possible with Yarn workspaces to import classes located out of the workspace's root directory?

0 Answers
Related