microsoft / fast

The adaptive interface system for modern web experiences.
https://www.fast.design
Other
9.25k stars 590 forks source link

Cannot import subpackages in ESM #6849

Closed vasicvuk closed 11 months ago

vasicvuk commented 11 months ago

🐛 Bug Report

If using NPM package @microsoft/fast-element with Esmodule i cannot import additional features that are not exported as part of index.js.

Example:

import { twoWay } from "@microsoft/fast-element/binding/two-way.js";

gives me Cannot find module '@microsoft/fast-element/binding/two-way.js' or its corresponding type declarations.

🤔 Expected Behavior

The import should work

😯 Current Behavior

It seems that only root import is possible which does not have all the needed functionalities.

🌍 Your Environment

Browser: Microsoft Edge Environment: VS Code Version: 2.0.0-beta.26

vasicvuk commented 11 months ago

I had to change tsconfig configuration to get this working. Closing

DavidVollmers commented 9 months ago

What exactly were your changes? 😄