Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error hermesEnabled on Android #715

Open
isuhar opened this issue Mar 30, 2020 · 3 comments
Open

Error hermesEnabled on Android #715

isuhar opened this issue Mar 30, 2020 · 3 comments

Comments

@isuhar
Copy link

isuhar commented Mar 30, 2020

Sorry, can`t reopen old issue #714

Environment

"@haul-bundler/babel-preset-react-native": "0.16.0",
"@haul-bundler/cli": "0.18.0",
"@haul-bundler/core": "0.18.0",
"@haul-bundler/preset-0.60": "0.18.0",
"react-native": "0.61.5",

Description

When turn on hermes on android, bundle dont work.
Hermes enabled, but it only helps to remove line from defaultConfig in preset-0.60

exclude: /node_modules(?!.*[\/\\](react|@react-navigation|@react-native-community|@expo|pretty-format|@haul-bundler|metro))/,

Haul config:

export default makeConfig({
    bundles: {
        index: {
            entry: withPolyfills("./src/mobile/index"),
        },
    },
})

babel config:

module.exports = function(api) {
    api.cache.using(() => process.env.BABEL_ENV)

    return {
        presets: [
           ["module:@haul-bundler/babel-preset-react-native", {hermes: true}],
        ],
    }
}

Reproducible Demo

image

@zamotany
Copy link
Contributor

Just to confirm, withe Hermes enabled the only way to make the bundle work is to remove the exclude from Webpack config. Am I correct?

@isuhar
Copy link
Author

isuhar commented Mar 30, 2020

Yes)

@eng-ms
Copy link

eng-ms commented Oct 23, 2020

Facing the same issue, is there any planned fix? Any workaround?
@isuhar Did you find any solution?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants