Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ReferenceError: Unknown plugin "transform-react-remove-prop-types" #607

Closed
jasonfma opened this issue Aug 15, 2017 · 4 comments
Closed

ReferenceError: Unknown plugin "transform-react-remove-prop-types" #607

jasonfma opened this issue Aug 15, 2017 · 4 comments

Comments

@jasonfma
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Error on launch

  1. Install latest react-native-web
  2. Run webpack

ReferenceError: Unknown plugin "transform-react-remove-prop-types"

What is the expected behavior?
Web app starts

Environment (include versions). Did this work in previous versions?
Worked in previous versions

  • OS: macOS
  • Device:
  • Browser: Chrome
  • React Native for Web (version): 0.0.119
  • React (version): 15.4.2
@jasonfma
Copy link
Author

jasonfma commented Aug 15, 2017

Fixed after installing babel-plugin-transform-react-remove-prop-types

Should we add this to the peerDependencies or dependencies?

@necolas
Copy link
Owner

necolas commented Aug 15, 2017

You don't need babel use react-native-web. Sounds like you have Babel trying to build from source code and using the project's development babelrc

@necolas necolas closed this as completed Aug 15, 2017
@jasonfma
Copy link
Author

Interesting. This was working with 0.0.89 but upgrading to 0.0.119 with no other changes causes this error. I'll dig into our babel configs.

@jasonfma
Copy link
Author

Oh yep ok thanks. I added an exclude for react-native-web in my webpack config and that solved the issue. Thanks!

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

No branches or pull requests

2 participants