Skip to content

Ugify error Expo v19.0.0 #83

@0xchimz

Description

@0xchimz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions