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

Ugify error Expo v19.0.0 #83

Open
0xchimz opened this issue Aug 2, 2017 · 1 comment
Open

Ugify error Expo v19.0.0 #83

0xchimz opened this issue Aug 2, 2017 · 1 comment
Labels

Comments

@0xchimz
Copy link

0xchimz commented Aug 2, 2017

Hi,
I'm using react-primitives on Expo v19.0.0 while enabling Minify mode (Uglify). I found that react-primitives cause the error:

Error: Uncaught error in the transformer worker: D:\Office\learn\test\node_modules\metro-bundler\build\transformer.js
    at _transform.then.catch.error (D:\Office\learn\test\node_modules\metro-bundler\build\JSTransformer\index.js:147:31)
    at process._tickCallback (internal/process/next_tick.js:109:7)

This error is gone if you disable Minify mode or remove react-primitives.

You can try by using create-react-native-app

  1. require react-primitives in your code.
  2. enable minify mode by edit setting file in ./.expo/settings.json with:
{
  ...
  "minify": true,
  ...
}
  1. run yarn start or npm start in your command line to start a project
  2. access a project with your phone or access to bundleUrl directly on your browser
  3. error should display on your command line

This error occurs on both platforms.

@ljharb
Copy link

ljharb commented Aug 2, 2017

If you figure this out, you can use https://npmjs.com/uglify-register to perform a regression test :-)

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

No branches or pull requests

3 participants