Babel-plugin-module-resolver: bundling failed: TypeError: x.match is not a function in React Native

Created on 10 Feb 2018  路  4Comments  路  Source: tleunen/babel-plugin-module-resolver

I try to use this with newly generated project from Ignite and I got this error.

screen shot 2018-02-10 at 13 50 05

My .babelrc

{ "presets": ["react-native"], "env": { "production": { "plugins": ["ignite-ignore-reactotron"] } }, "plugins": [ [ "module-resolver", { "root": ["./App"], "extensions": [".js", ".ios.js", ".android.js"] } ] ] }

Most helpful comment

Be sure to install babel-plugin-module-resolver and not module-resolver

All 4 comments

Same error with with 3.1.0, works fine with 3.0.0. Ejected create-react-app...

@faqini Could you tell me a bit more about this with create-react-app? Would you have an easy repo where I can take a look?

Be sure to install babel-plugin-module-resolver and not module-resolver

Closing as this is about module-resolver, and not babel-plugin-module-resolver (see the first line in the stack trace).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbdeveloper picture cbdeveloper  路  4Comments

kevinNejad picture kevinNejad  路  3Comments

vjpr picture vjpr  路  8Comments

tleunen picture tleunen  路  6Comments

kkomaz picture kkomaz  路  7Comments