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.

No Loaders working currently

See original GitHub issue

Running a fresh expo init build with the following versions

 "expo": "^33.0.0",
    "expo-asset": "^5.0.0",
    "expo-constants": "^5.0.0",
    "expo-font": "^5.0.0",
    "expo-graphics": "^1.1.0",
    "expo-three": "^3.0.0-alpha.8",
    "expo-web-browser": "^5.0.0",

I’ve also added the following loaders per the other issues re: loading files:

"packagerOpts": {
      "assetExts": [
        "ttf",
        "mp4",
        "otf",
        "dae",
        "glb",
        "gltf",
        "fbx",
        "obj",
        "mtl",
        "amf",
        "3mf",
        "3ds",
        "jpg",
        "assimp",
        "fbx",
        "pmd",
        "vmd",
        "ply",
        "stl",
        "vtk",
        "vtp",
        "babylon",
        "drc",
        "pcd",
        "pack",
        "bvh",
        "x"
      ]
    }

The core issue is that using the exact Assets.js and file structure (Assets.js at the top level, /assets folder containing an exact copy of the one in this repo) the bundler is giving me this error:

IMG_6C3EFD110682-1

I’m thinking perhaps a cache issue or more likely…something completely goofy but I have exactly replicated the structure in this repo and it isn’t working. FWIW, I tried running the /examples directory of this repo as its own app and that gave a ton of typescript errors about missing loaders and packages.

cc @EvanBacon seems like this may be on the back burner at the moment, but if you have a minute, anything come to mind that could be causing this?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bberakcommented, Jul 13, 2019

I came across this issue as I was looking for something. I had the same problem @evanmrose, the trick that worked for me was to add a metro.config.js file in the root of the project. Here is my file:

const defaultAssetExts = require("metro-config/src/defaults/defaults").assetExts;

module.exports = {
  resolver: {
    assetExts: [
      ...defaultAssetExts,
      "glb"
    ]
  }
};

I think @mattblackdev is right with the packagerOpts not working as expected.

Hope this helps.

2reactions
mattblackdevcommented, Jul 9, 2019

@EvanBacon I looked at most of the loader code briefly and it seems pretty tedious to maintain. Any chance there might be a better approach? A new strategy the community could help develop that might be leaner, easier to maintain and less coupled to all the different file extensions/types?

Read more comments on GitHub >

github_iconTop Results From Across the Web

You may need an appropriate loader to handle this file type ...
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file." Ask Question. Asked...
Read more >
You may need an appropriate loader to handle this file type ...
Typescript with Webpack - You may need an appropriate loader to handle this file type currently no loaders are configured to process this...
Read more >
Module parse failed: Unexpected token. You may ... - GitHub
Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type, currently no loaders are configured to process...
Read more >
sass-loader - webpack - JS.ORG
We highly recommend using Dart Sass. Warning. Node Sass does not work with Yarn PnP feature and doesn't support @use rule. Warning. Sass...
Read more >
ts-loader - npm
Works well with karma-webpack (not all strategies do); devtool: 'eval-cheap-module-source-map' - Best support for sourcemaps whilst debugging.
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