- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Importing from /dist Sub-Path
Because of how Medusa packages are bundled and released, importing from the /dist
sub-path of its packages is not allowed.
For example, this is not allowed:
Importing from Exposed Directories#
The @medusajs/medusa
package allows you to import from the following sub-directories:
api
subscribers
jobs
core-flows
loaders
commands
So, you can still import AdminGetApiKeysParams
from the example above, however, the import path shouldn't include /dist
.
So, this is allowed:
Was this page helpful?