guansss / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind.
https://guansss.github.io/pixi-live2d-display/
MIT License
808 stars 123 forks source link

npm run playground后报错 #133

Closed jacksen168sub closed 4 months ago

jacksen168sub commented 4 months ago
PS D:\study\html\open\PL2DForTC\pixi-live2d-display-0.5.0-beta> npm run playground
Debugger attached.

> pixi-live2d-display@v0.5.0-beta playground
> vite

Debugger attached.

  VITE v5.0.0  ready in 692 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
16:01:04 [vite] Failed to load source map for /core/live2dcubismcore.js.
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist? (x2)
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
16:01:04 [vite] Pre-transform error: Failed to resolve import "@cubism/effect/cubismpose" from "src\cubism4\factory.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist? (x2)
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist? (x3)
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist? (x4)
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/config.ts:1:29
  1  |  import { CubismConfig } from "@cubism/config";
     |                                ^
  2  |  const LOG_LEVEL_VERBOSE = 0;
  3  |  const LOG_LEVEL_WARNING = 1;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 0)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4ExpressionManager.ts:6:39
  1  |  import { ExpressionManager } from "@/cubism-common/ExpressionManager";
  2  |  import { CubismExpressionMotion } from "@cubism/motion/cubismexpressionmotion";
     |                                          ^
  3  |  import { CubismMotionQueueManager } from "@cubism/motion/cubismmotionqueuemanager";
  4  |  export class Cubism4ExpressionManager extends ExpressionManager {
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 1)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4ModelSettings.ts:4:40
  1  |  import { ModelSettings } from "@/cubism-common/ModelSettings";
  2  |  import { applyMixins } from "@/utils";
  3  |  import { CubismModelSettingsJson } from "@cubism/settings/cubismmodelsettingsjson";
     |                                           ^
  4  |  export class Cubism4ModelSettings extends ModelSettings {
  5  |    moc;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 2)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4InternalModel.ts:14:7
  9  |    ParamEyeBallX,
  10 |    ParamEyeBallY
  11 |  } from "@cubism/cubismdefaultparameterid";
     |          ^
  12 |  import { BreathParameterData, CubismBreath } from "@cubism/effect/cubismbreath";
  13 |  import { CubismEyeBlink } from "@cubism/effect/cubismeyeblink";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 2)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/effect/cubismpose" from "src\cubism4\factory.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/factory.ts:7:27
  3  |  import { cubism4Ready } from "@/cubism4/setup";
  4  |  import { Live2DFactory } from "@/factory/Live2DFactory";
  5  |  import { CubismPose } from "@cubism/effect/cubismpose";
     |                              ^
  6  |  import { CubismMoc } from "@cubism/model/cubismmoc";
  7  |  import { CubismPhysics } from "@cubism/physics/cubismphysics";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 4)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/setup.ts:3:42
  1  |  import { logger } from "@/utils";
  2  |  import { CubismFramework, LogLevel } from "@cubism/live2dcubismframework";
     |                                             ^
  3  |  let startupPromise;
  4  |  let startupRetries = 20;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 1)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
16:01:05 [vite] Internal server error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4MotionManager.ts:9:29
  2  |  import { MotionManager } from "@/cubism-common/MotionManager";
  3  |  import { Cubism4ExpressionManager } from "@/cubism4/Cubism4ExpressionManager";
  4  |  import { CubismMotion } from "@cubism/motion/cubismmotion";
     |                                ^
  5  |  import { CubismMotionJson } from "@cubism/motion/cubismmotionjson";
  6  |  import { CubismMotionQueueManager } from "@cubism/motion/cubismmotionqueuemanager";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 3)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:05 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/config.ts:1:29
  1  |  import { CubismConfig } from "@cubism/config";
     |                                ^
  2  |  const LOG_LEVEL_VERBOSE = 0;
  3  |  const LOG_LEVEL_WARNING = 1;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 0)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4ExpressionManager.ts:6:39
  1  |  import { ExpressionManager } from "@/cubism-common/ExpressionManager";
  2  |  import { CubismExpressionMotion } from "@cubism/motion/cubismexpressionmotion";
     |                                          ^
  3  |  import { CubismMotionQueueManager } from "@cubism/motion/cubismmotionqueuemanager";
  4  |  export class Cubism4ExpressionManager extends ExpressionManager {
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 1)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/settings/cubismmodelsettingsjson" from "src\cubism4\Cubism4ModelSettings.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4ModelSettings.ts:4:40
  1  |  import { ModelSettings } from "@/cubism-common/ModelSettings";
  2  |  import { applyMixins } from "@/utils";
  3  |  import { CubismModelSettingsJson } from "@cubism/settings/cubismmodelsettingsjson";
     |                                           ^
  4  |  export class Cubism4ModelSettings extends ModelSettings {
  5  |    moc;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 2)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/motion/cubismmotion" from "src\cubism4\Cubism4MotionManager.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4MotionManager.ts:9:29
  2  |  import { MotionManager } from "@/cubism-common/MotionManager";
  3  |  import { Cubism4ExpressionManager } from "@/cubism4/Cubism4ExpressionManager";
  4  |  import { CubismMotion } from "@cubism/motion/cubismmotion";
     |                                ^
  5  |  import { CubismMotionJson } from "@cubism/motion/cubismmotionjson";
  6  |  import { CubismMotionQueueManager } from "@cubism/motion/cubismmotionqueuemanager";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 3)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/effect/cubismpose" from "src\cubism4\factory.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/factory.ts:7:27
  3  |  import { cubism4Ready } from "@/cubism4/setup";
  4  |  import { Live2DFactory } from "@/factory/Live2DFactory";
  5  |  import { CubismPose } from "@cubism/effect/cubismpose";
     |                              ^
  6  |  import { CubismMoc } from "@cubism/model/cubismmoc";
  7  |  import { CubismPhysics } from "@cubism/physics/cubismphysics";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 4)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
      at async viteTransformMiddleware (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:57379:32)
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/cubismdefaultparameterid" from "src\cubism4\Cubism4InternalModel.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/Cubism4InternalModel.ts:14:7
  9  |    ParamEyeBallX,
  10 |    ParamEyeBallY
  11 |  } from "@cubism/cubismdefaultparameterid";
     |          ^
  12 |  import { BreathParameterData, CubismBreath } from "@cubism/effect/cubismbreath";
  13 |  import { CubismEyeBlink } from "@cubism/effect/cubismeyeblink";
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 2)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
16:01:07 [vite] Internal server error: Failed to resolve import "@cubism/live2dcubismframework" from "src\cubism4\setup.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/src/cubism4/setup.ts:3:42
  1  |  import { logger } from "@/utils";
  2  |  import { CubismFramework, LogLevel } from "@cubism/live2dcubismframework";
     |                                             ^
  3  |  let startupPromise;
  4  |  let startupRetries = 20;
      at formatError (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61701:46)
      at TransformContext.error (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61695:19)
      at normalizeUrl (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:59988:33)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60138:47
      at async Promise.all (index 1)
      at async TransformContext.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:60059:13)
      at async Object.transform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:61996:30)
      at async loadAndTransform (file:///D:/study/html/open/PL2DForTC/pixi-live2d-display-0.5.0-beta/node_modules/vite/dist/node/chunks/dep-T98iZFpD.js:47780:29)
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/config" from "src\config.ts". Does the file exist?
16:01:07 [vite] Pre-transform error: Failed to resolve import "@cubism/motion/cubismexpressionmotion" from "src\cubism4\Cubism4ExpressionManager.ts". Does the file exist?
guansss commented 4 months ago

是不是没有 clone submodule?

https://github.com/guansss/pixi-live2d-display/blob/31317b37d5e22955a44d5b11f37f421e94a11269/DEVELOPMENT.md#cloning-the-repo

jacksen168sub commented 4 months ago

是不是没有 clone submodule?

https://github.com/guansss/pixi-live2d-display/blob/31317b37d5e22955a44d5b11f37f421e94a11269/DEVELOPMENT.md#cloning-the-repo

下载的发行版😂