Skip to content

index.js: Unknown option: .resolver. #2301

Answered by tido64
kartik-stan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kartik-stan, it looks like you've mixed babel.config.js and metro.config.js together. Looking at the config you posted, I'm guessing they should be split like this:

// babel.config.js
module.exports = {
  presets: ["@rnx-kit/babel-preset-metro-react-native"],
  plugins: ['react-native-reanimated/plugin'],
};

// metro.config.js
const { makeMetroConfig } = require("@rnx-kit/metro-config");
const MetroSymlinksResolver = require("@rnx-kit/metro-resolver-symlinks");

module.exports = makeMetroConfig({
  resolver: {
    resolveRequest: MetroSymlinksResolver(),
  },
});

Also I wanted to know if it is possible to serve the bundles from a server instead of keeping them in the app build? If s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tido64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2300 on March 21, 2023 08:41.