cbor fails to import in expo/metro bundle (expo go IOS)
See original GitHub issueI’m developing a React Native application and I cannot get this library to work under expo/metro. Simply adding import cbor from 'cbor';
causes the bundle to error out with Unhandled JS Exception: Invalid regular expression: invalid group specifier name no stack
.
To reproduce:
expo init dummy # minimal template
cd dummy
npm install cbor
npm install node-inspect-extracted
npm install stream
# Add "import cbor from 'cbor';" to App.js
expo start
# open bundle with expo go
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (14 by maintainers)
Top Results From Across the Web
IOS - Bundle Assets Error When Building Release (403)
We've published the application with expo export and hosting the content on S3. The asset links are accessible there with no 403. Debug...
Read more >Expo and metro bundler: external module cannot resolve react ...
I get no error when the imported module does not import react. Here's the error: Unable to resolve module @babel/runtime/helpers/ ...
Read more >Collibra Platform OSS Attribution File.txt
This Collibra product does not necessarily use all the open source software referred to below and may also only use portions of a...
Read more >@expo/metro-config - npm
A Metro config for running React Native projects with the Metro bundler. Latest version: 0.5.2, last published: 9 days ago.
Read more >News Cabra hgW - ALBA.Net
Www owais raza qadri audio naat com, Iphone 4s review ios 8, ... Lintukirpun purema, Default tab chrome download, Imported chocolates delhi, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Understanding their code let me simplify a few things. Current set of packages required:
No changes to
babel.config.js
necessary. Changemetro.config.js
to:Is this working enough that we can close the issue?