question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve "three/examples/jsm/loaders/ColladaLoader"

See original GitHub issue

I have been getting an error with new SDK 35 when importing expo-three.

Error: Unable to resolve “three/examples/jsm/loaders/ColladaLoader” from “node_modules\expo-three\build\loaders\loadModelsAsync.js”

Package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "^35.0.0",
    "expo-graphics": "^1.1.0",
    "expo-three": "4.0.6",
    "react": "16.8.3",
    "react-dom": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
    "react-native-web": "^0.11.7"
  },
  "devDependencies": {
    "babel-preset-expo": "^7.1.0"
  },
  "private": true
}

Possibly related to issue #126 however downgrading expo-three to version 4x does not resolve the issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
nthattecommented, Jun 20, 2020

I’m still seeing this issue with 5.5.1. For example, the snack linked to here https://docs.expo.io/versions/latest/sdk/AR/ gives the error

Device: (901:881) Unable to resolve module 'module://three/examples/jsm/loaders/ColladaLoader.js'
  Evaluating module://three/examples/jsm/loaders/ColladaLoader.js
  Evaluating module://expo-three.js
  Evaluating module://App.js.js
  Loading module://App.js

and has 5.5.1 listed in its dependencies.

0reactions
opexucommented, Dec 15, 2020

same problem 5.5.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Cannot Import from Three.js Examples (Script error ...
js setup. I use Bazel build and run the app. Everything works fine until I try to import the OBJLoader2 from three/examples/jsm/loaders ......
Read more >
expo-three - npm
Start using expo-three in your project by running `npm i expo-three`. ... with the JS module three/examples/jsm/loaders/ColladaLoader ...
Read more >
JSM modules for browser double import with TypeScript
I was very happy to see that in r105 there are now modules that can be easily imported. Sadly this results for me...
Read more >
expo-three - UNPKG
The CDN for expo-three. ... expo-three/build/loaders/loadModelsAsync.js.map ... { ColladaLoader } from 'three/examples/jsm/loaders/ColladaLoader';\nimport ...
Read more >
Uncaught TypeError: Failed to resolve module specifier "three ...
Coding example for the question Uncaught TypeError: Failed to resolve module specifier "three/examples/jsm/loaders/GLTFLoader.js"-three.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found