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

Updated to latest (1.1.324 -> 1.1.330) and see babel errors #238

Open
canadaduane opened this issue Nov 16, 2024 · 2 comments
Open

Updated to latest (1.1.324 -> 1.1.330) and see babel errors #238

canadaduane opened this issue Nov 16, 2024 · 2 comments

Comments

@canadaduane
Copy link

After updating to latest version of One (1.1.330) I now see the following errors when trying to bun dev:

✘ [ERROR] Could not resolve "@babel/runtime/helpers/interopRequireDefault"

    ../.bun/install/cache/[email protected]@@@1/dist/cjs/exports/SafeAreaView/index.js:3:37:
      3 │ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
        ╵                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@babel/runtime/helpers/interopRequireDefault" as external to exclude it
  from the bundle, which will remove this error and leave the unresolved path in the bundle. You can
  also surround this "require" call with a try/catch block to handle this failure at run-time
  instead of bundle-time.

There are hundreds of similar lines, e.g. exports/YellowBox/index.js, exports/Text/index.js etc.

@zetavg
Copy link
Collaborator

zetavg commented Nov 17, 2024

Thanks for reporting! I'd tried with npx one, selecting the Minimal Tamagui template and bun, starting the dev server with bun dev, but I couldn’t reproduce the issue on either web or native.

Could you provide your package.json or try creating a minimal reproduction of the problem to help us investigate further?

@canadaduane
Copy link
Author

I will hopefully have time to check again this weekend. Thanks for your patience.

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