Spoke icon indicating copy to clipboard operation
Spoke copied to clipboard

Failed to Compile: Can't resolve 'three/examples/textures/waternormals.jpg'

Open lalalune opened this issue 4 years ago • 1 comments

Clone spoke, install and run. This is the error:

ERROR in ./src/editor/nodes/SimpleWaterNode.js Module not found: Error: Can't resolve 'three/examples/textures/waternormals.jpg' in '/home/beast/Documents/GitHub/xrsocial-client/node_modules/xrchat-spoke/src/editor/nodes' @ ./src/editor/nodes/SimpleWaterNode.js 5:0-71 38:39-54 @ ./src/config.js @ ./src/ui/EditorContainer.js @ ./src/ui/App.js @ ./src/index.js @ multi ./src/index.js

lalalune avatar Jun 05 '20 22:06 lalalune

it seems like npm install doesn't get the correct branch or version of three.js. i manually copy and replace the directory: node_modules/three/examples/ from https://github.com/MozillaReality/three.js#hubs/master then it works!

StevenGastroSophy avatar Jun 25 '21 09:06 StevenGastroSophy