index.js: Unknown option: .resolver. #2301
-
What happened?I am trying to bundling but I ran into the following error while bundling the app I am using the following command bable.config.js
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 so, is there any documentation around it? Thanks in advance Affected Package@rnx-kit/cli Version^0.16.4 Which platforms are you seeing this issue on?
System Information
Steps to Reproducereact-native rnx-bundle --entry-file index.js --platform android --bundle-output android/main.jsbundle --sourcemap-output android/main.jsbundle.map --assets-dest android Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @kartik-stan, it looks like you've mixed // 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(),
},
});
You can use |
Beta Was this translation helpful? Give feedback.
Hi @kartik-stan, it looks like you've mixed
babel.config.js
andmetro.config.js
together. Looking at the config you posted, I'm guessing they should be split like this: