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

packager error with example app #8

Open
mmmurf opened this issue Apr 7, 2017 · 2 comments
Open

packager error with example app #8

mmmurf opened this issue Apr 7, 2017 · 2 comments

Comments

@mmmurf
Copy link

mmmurf commented Apr 7, 2017

loading the following URL in the browser:

http://localhost:8081/index.worker.bundle

results in the packager error printed to the terminal running the packager:

Error: Error validating module options: child "platform" fails because ["platform" must be a string]
at /Users/mmmurf/projects/react-native-workers/example/node_modules/react-native/packager/react-packager/src/lib/declareOpts.js:71:13
at _bundler.getResolver.getDependencyGraph.load.then (/Users/mmmurf/projects/react-native-workers/example/node_modules/react-native/packager/react-packager/src/Server/index.js:320:20)
at process._tickCallback (internal/process/next_tick.js:109:7)

@nbergen
Copy link

nbergen commented May 6, 2017

using http://localhost:8081/index.worker.bundle?platform=android (and presumably ios) works.

@fabriciovergara
Copy link
Owner

you should start the worker in another port, 8081 is RN default packer port that will be used by the main code.

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

3 participants