Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
Configuración de paquete web en gatsby.js para useGLTF de "@react-three/drei" para .gltf

Hola. Tengo este error cuando cargo el archivo .gltf desde Blender:

El análisis del módulo falló: Token inesperado (2:12) Es posible que necesite un cargador apropiado para manejar este tipo de archivo, actualmente no hay cargadores configurados para procesar este archivo. Consulte https://webpack.js.org/concepts#loaders

 | { > "asset" : { | "generator" : "Khronos glTF Blender I/O v1.7.33", | "version" : "2.0"

Agrego gatsby-node.js:

 exports.onCreateWebpackConfig = ({ stage, rules, loaders, plugins, actions, }) => { actions.setWebpackConfig({ module: { rules: [ { test: /\.gltf$/, use: [ `url-loader`, ], }, ], }, }) }

Pero todavía no funciona.

Mi componente:

 import {useGLTF} from "@react-three/drei"; import logo from '/src/components/react.gltf' const Model = () => { const group = useRef() const { nodes, materials } = useGLTF(logo) return ( <group ref={group} {...props} dispose={null}> <mesh geometry={nodes.Text.geometry} material={materials['Material.001']} rotation={[Math.PI / 2, 0, 0]} /> <mesh geometry={nodes.Text001.geometry} material={materials['Material.002']} position={[0, 0, 0.04]} rotation={[Math.PI / 2, 0, 0]} /> </group> ) } export default Model
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!