Comments (7)
This is a major issue for react native OSS package maintainers as it is very hard to test the code in example projects
from metro.
Symlink support is being tracked in #1. See this comment, specifically.
from metro.
I tried the rn-cli-config.js but it didn't work
For anyone else reading this, rn-cli-config.js
has been renamed to metro.config.js
and here's the relevant section.
Sample metro.config.js
to look for mymodule
in ./mymodule
:
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true
}
})
},
resolver: {
extraNodeModules: {
"mymodule": "./"
}
}
};
from metro.
@iddan agree. But note that there is a workaround (see my rn-cli-config.js file).
from metro.
Just ran into this issue myself. Only my error was slightly different. Glad Google brought me here.
On iOS screen:
Metro Bundler has encountered an internal error, please check your terminal error output for more details
Terminal:
[20:58:54] undefined
[20:58:54] Failed building JavaScript bundle.
Setup:
"expo": "^29.0.0",
"react": "16.3.1",
However just prior to this I did npm link moduleName
from metro.
I tried the rn-cli-config.js but it didn't work
from metro.
I found a kind of bug while installing some packages related to yarn in our system if the user name is space separate string. for example, the user name is Roop Basant. It throws an error that the user is not found.
from metro.
Related Issues (20)
- Property "watcher.unstable_workerThreads" shows warning message when running Metro HOT 3
- unstable_enableSymlinks not work with library with react components with Babel transpilation
- Android font not shown even after linking
- None of these files exist HOT 2
- Cannot find module @callstack/out-of-tree-platforms after run `yarn start --reset-cache` in rn-tester app HOT 1
- How to use it in android tv?
- [Question]: Why is Metro hot update not affected by project size, as always fast HOT 1
- Issues with redux-saga when using unstable_enablePackageExports
- [website] "Fast", "Scalable", and "Integrated" images don't load.
- error: bundling failed: SyntaxError: Unexpected reserved type (any, string, func, Boolean ) HOT 1
- [Question]: Custom logo and welcome message on Metro server launch? HOT 4
- Metro on Windows: Cannot start server in new window because no terminal app was specified HOT 1
- Could not determine the dependecies of task ' :react-native-safe-area-context:generateDebugRFile' HOT 1
- Absolute Paths [global packages] are not working in React Native 0.73.1 HOT 2
- [`metro-transform-plugins`] Function calls prefixed with void together with optional chain (?.) are skipped on production (`dev: false`). HOT 1
- Cannot Conect Metro HOT 2
- web document link not correct HOT 2
- The Metro bundler does not connect to iOS devices HOT 1
- zip
- Is metro will support pnpm in the future? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metro.