ptmt / react-native-macos

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.25k stars 429 forks source link

babel-plugin-module-resolver missing from devDependencies. "Unknown plugin module-resolver" #205

Closed eastcoastcoder closed 6 years ago

eastcoastcoder commented 6 years ago

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Steps to Reproduce

(Write your steps here:)

  1. react-native-macos init MyProject

Expected Behavior

Metro bundler should compile.

Actual Behavior

error: bundling failed: ReferenceError: Unknown plugin "module-resolver" specified in "[MYPROJECT]/.babelrc" at 0,

Reproducible Demo

Just init a new project. We need something in the init scripts like yarn add -D babel-plugin-module-resolver 3.1.1 installed automatically and works for me.

ptmt commented 6 years ago

Fixed in the latest release

ptmt commented 6 years ago

Thanks for the feedback! It was a very silly mistake. It handled only npm setups, not yarn.

eastcoastcoder commented 6 years ago

Much appreciated!