Skip to content

Bug: issues during the project building. #296

@codyuan

Description

@codyuan

Here is the information when I try to build my project according to the Readme:

$ rush build
Found configuration in C:\Users\yuanye\Desktop\coze_proposal_website\rush.json


Rush Multi-Project Build Tool 5.140.0 - https://rushjs.io
Node.js version is 18.20.8 (LTS)


Starting "rush build"

The command line selection parameters did not match any projects.

Seems that the project isn't built correctly, cuz when I try

 const { CozeAPI } = await import("@coze/api");

there occurs an import error:

Uncaught:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@coze/api' imported from C:\Users\yuanye\De
sktop\coze_proposal_website\repl
    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:916:9)
    at moduleResolve (node:internal/modules/esm/resolve:973:20)
    at defaultResolve (node:internal/modules/esm/resolve:1206:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)
    at ModuleLoader.import (node:internal/modules/esm/loader:336:34)
    at importModuleDynamically (node:repl:467:39)
    at importModuleDynamicallyWrapper (node:internal/vm/module:432:21)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:176:14)
    at REPL1:1:29 {
  code: 'ERR_MODULE_NOT_FOUND'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions