Tresjs / cientos

Collection of useful helpers and fully functional, ready-made abstractions for TresJS
https://cientos.tresjs.org/
MIT License
249 stars 36 forks source link

Failed to resolve import "tweakpane" from "node_modules/@tresjs/cientos/dist/trescientos.js?v=617975b6". Does the file exist? #364

Closed sniperadmin closed 4 months ago

sniperadmin commented 4 months ago

Describe the bug

When loading models, nuxt stops compiling with errors:

Reproduction

https://stackblitz.com/edit/nuxt-starter-zea57t?file=app.vue

Steps to reproduce

install the required modules:

yarn add @tresjs/cientos @tresjs/core @tresjs/nuxt @tresjs/post-processing

then add the following template:

<template>
  <TresCanvas clear-color="#82DBC5" shadows alpha>
    <TresPerspectiveCamera :position="[11, 11, 11]" />
    <OrbitControls />
    <Suspense>
      <FBXModel path="https://raw.githubusercontent.com/Tresjs/assets/main/models/fbx/low-poly-truck/Jeep_done.fbx" />
    </Suspense>
    <TresDirectionalLight :position="[-4, 8, 4]" :intensity="1.5" cast-shadow />
  </TresCanvas>
</template>

System Info

"@tresjs/cientos": "^3.8.0"
"@tresjs/core": "^3.7.0"
"@tresjs/nuxt": "^2.1.1"
"@tresjs/post-processing": "^0.7.0"
"nuxt": "^3.10.3"
"three": "^0.162.0"
"vue": "^3.4.21"


### Used Package Manager

npm

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://cientos.tresjs.org/guide).
- [X] Check that there isn't [already an issue](https://github.com/Tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
stackblitz[bot] commented 4 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

alvarosabu commented 4 months ago

Install tweakpane for now. Tweakpane support is gonna be deprecated on v4