Skip to content

Migrating to v5: Package subpath './commands' is not defined by "exports" in node_modules/@callstack/repack/package.json #971

Answered by jbroma
sahajarora1286 asked this question in Q&A
Discussion options

You must be logged in to vote

hi, this is not documented yet but you have to adjust that path in react-native.config.js

If you want to use Rspack (recommended):

module.exports = {
  commands: require('@callstack/repack/commands/rspack'),
};

or if you want to keep using webpack:

module.exports = {
  commands: require('@callstack/repack/commands/webpack'),
};

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sahajarora1286
Comment options

@jbroma
Comment options

Answer selected by sahajarora1286
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