guansss / pixi-live2d-display

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

import問題 #76

Closed Cpk0521 closed 1 year ago

Cpk0521 commented 1 year ago

package.json pack

問題 unknown

根據document的做法

// if only Cubism 4
import { Live2DModel } from 'pixi-live2d-display/cubism4';

卻無法import模組

guansss commented 1 year ago

TS 对这种 import 方式的支持还不是很好,可以把 tsconfig 里的 moduleResolution 设为 nodenext,然后重启一下 TS 服务或者直接重启 vscode

{
  "compilerOptions": {
    "moduleResolution": "nodenext"
  }
}
Cpk0521 commented 1 year ago

好的 我稍後會嘗試