Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

THREE is Not Defined #279

Open
wildy13 opened this issue Aug 2, 2024 · 0 comments
Open

THREE is Not Defined #279

wildy13 opened this issue Aug 2, 2024 · 0 comments

Comments

@wildy13
Copy link

wildy13 commented Aug 2, 2024

{
  "name": "nuxt-app",
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "gsap": "^3.12.5",
    "nuxt": "^3.12.4",
    "three": "^0.167.1",
    "three-mesh-ui": "^6.5.4",
    "vue": "latest"
  },
  "devDependencies": {
    "@nuxtjs/tailwindcss": "^6.12.1"
  }
}

What's going on, ive three on there, but the error said Three is not defined

this is my code

import { onMounted, ref } from 'vue';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
import * as THREE from 'three';
import { ARButton } from 'three/addons/webxr/ARButton.js';
import ThreeMeshUI from "three-mesh-ui";
...

i hopes, my senior can fix it or can gimme suggestion, thanx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant