LoginSignup
0
0

More than 1 year has passed since last update.

next jsにthree.jsの導入

Last updated at Posted at 2022-12-04

npm install three

// nice to have
サンプルコード

npm run buildでエラー

Type error: Could not find a declaration file for module 'three'. 
...
/node_modules/three/build/three.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/three` if it exists or add a new declaration (.d.ts) file containing `declare module 'three';`

Typescript用の方も入れないと行けなかった
npm i --save-dev @types/threeで解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0