Part API275 Documents

Cross Part Business Import

A part may import only its own generated ${part}Business alias. Import another part through that part’s public bundle or alias; never import another part’s business bundle or internal business modules directly.

Correct

Importing file: /home/dev/blog/api/api/site/post.js

import { findCategory } from 'taxonomy'
import { findRelatedPosts } from 'blogBusiness'

Incorrect

Importing file: /home/dev/blog/api/api/site/post.js

import { findCategory } from 'taxonomyBusiness'
import findCategory from 'taxonomy/business/category/find.js'

Fix

Replace the cross-part business import with an import from the other part’s public bundle or alias.