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

build wpf bundle #1263

Closed
scott108 opened this issue Aug 3, 2017 · 11 comments
Closed

build wpf bundle #1263

scott108 opened this issue Aug 3, 2017 · 11 comments

Comments

@scott108
Copy link
Contributor

scott108 commented Aug 3, 2017

hi,
when I use
react-native bundle --platform wpf --entry-file index.wpf.js
--bundle-output wpf\tte\ReactAssets\index.wpf.bundle
--assets-dest wpf\tte\ReactAssets

to build index.wpf.bundle, and I got Unrecognized platform: wpf message

@sayar
Copy link
Contributor

sayar commented Aug 4, 2017

Hi @scott108, did you run npm i rnpm-plugin-wpf or yarn add rnpm-plugin-wpf and react-native wpf before trying to run the bundle command?

@scott108
Copy link
Contributor Author

scott108 commented Aug 7, 2017

Hi @sayar , I just run npm i rnpm-plugin-windows and react-native wpf, is there anything different??

@sayar
Copy link
Contributor

sayar commented Aug 7, 2017

Yep, you gotta run npm i rnpm-plugin-wpf (note the wpf instead of windows) to be able to add wpf platform support. Let me know if that fixes your problem so I can close this issue.

@scott108
Copy link
Contributor Author

scott108 commented Aug 8, 2017

If i only run npm i rnpm-plugin-wpf, and I got Unrecognized command 'wpf' message after react-native wpf(reference #1177)
image

@sayar
Copy link
Contributor

sayar commented Aug 8, 2017

@scott108, I wasn't able to reproduce this error. Can you please share what versions of react-native you are using?

@scott108
Copy link
Contributor Author

scott108 commented Aug 9, 2017

Hi @sayar, here is my package.json

{
  "name": "test",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.47.1"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "2.1.0",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "jest": {
    "preset": "react-native"
  }
}

@sayar sayar self-assigned this Sep 6, 2017
@dpitre
Copy link

dpitre commented Sep 18, 2017

You are missing react-native-windows.

npm install --save-dev rnpm-plungin-wpf
npm install --save-dev react-native-windows
react-native wpf

@Javis1205
Copy link

Can you help me about this issue

@Javis1205
Copy link

@sayar can you help me?

@ncomo11
Copy link

ncomo11 commented Jun 5, 2018

In order to create bundle for WPF platform use 'windows' option instead of 'wpf':

react-native bundle --platform **windows** --entry-file **index.js** --bundle-output wpf\samplewpfapp\ReactAssets\index.wpf.bundle --assets-dest wpf\samplewpfapp\ReactAssets

Alter refer:

  1. react-native bundle --platform wpf ... doesn't work #1801
  2. How to create a wpf project? #1539

@rozele
Copy link
Collaborator

rozele commented Jul 23, 2018

Looks like @ncomo11 might have the correct solution here. Please advise if this needs to be re-opened.

@rozele rozele closed this as completed Jul 23, 2018
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

6 participants