Error running "yarn plasmic sync" command

Hi!
I’m trying to publish my changes to existing repo using commit
And in Syncing Plasmic project step I’m seeing this error:
Error: Command failed: yarn plasmic sync --projects 'id:token' --yes
Maybe you have any idea how to solve this?

I guess this one is relevant too
Plasmic error: Encountered code component "CompvnvMSbQ6Uw" that was not registered with an importPath, so we don't know where to import this component from. Please see <https://docs.plasmic.app/learn/code-components-ref/>

Hi @blameless_rodent! What is your project ID?

qTWasrryPGi3zgSiKNF4hN

“CompvnvMSbQ6Uw” is the “Ratings” component. Can you confirm if you’re registering it with importPath?

I guess no)

PLASMIC.registerComponent(Ratings, {
  name: 'Ratings',
  props: {
    className: {
      type: 'string',
      defaultValue: '',
    },
    ratings: {
      type: 'object',
      defaultValue: {
        slides: {
          lastMonth: 23,
        },
        trustpilot: {
          rate: 4.5,
          count: 1000,
        },
        facebook: {
          rate: 4.5,
          count: 1000,
        },
        reviews: {
          rate: 4.5,
          count: 1000,
        },
      },
    },
    social: {
      type: 'object',
    },
  },
});

Oh, okay! When you’re using codegen you need to specify import paths for your components.

import {Ratings} from "path/to/Ratings";

PLASMIC.regsiterComponent(Ratings, {
  name: 'Ratings',
  importPath: 'path/to/Ratings',
  ...
});

https://docs.plasmic.app/learn/code-components-ref/

How to understand that I’m using codegen?
Coz I’m just registering this component in Next and then using it in Studio like every other one

The plasmic sync command that is failing (Error: Command failed: yarn plasmic sync --projects 'id:token' --yes) is only used on codegen mode, so that’s probably how you set up publishing. Code component registration works the same way on both Headless API and Codegen, except that you need to specify import path in the latter.