With the release of the official version of the Cubism 4 SDK for Web R1 from the previous beta version, the structure of packages and repositories has been changed to improve usability.
The reason for this change is to operate without changing the structure of Cubism 4 SDK for Native, and to avoid mixing files that do not require management by users.
Details on structural changes and how to update from projects prior to Cubism 4 SDK for Web beta2 are described in the Cubism SDK Manual. Please be sure to check it when updating.
A duplicate declaration error may occur due to @types/node
among the dependency packages used in the Cubism 4 SDK for Web Samples.
We have confirmed that this can be resolved by one of the following procedures.
- Navigate to the
/Samples/TypeScript/Demo
directory in Terminal. - Execute the command
npm i -g npm-check-updates
. - Execute the command
ncu
.
- Navigate to the
/Samples/TypeScript/Demo
directory in Terminal. - Execute the command
npm uninstall @types/node
. - Execute the command
npm install @types/node
.
©Live2D