question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import symlink component is not working (expo)

See original GitHub issue

Do you want to request a feature or report a bug? BUG

What is the current behavior? i make a component symlink to my project directory. when i try to import that symlink i got error unable to resolve

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.

  1. make a seperate component outside the project
  2. make this component symlink in project directory
  3. import this symlink component
  4. you will get an error

What is the expected behavior? when i import symlink component it should resolve it

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. i did not make any configuration. i am using expo

import TestComponent from 'path of component inside project which is actual symlink'

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

1reaction
TimothyJAvenicommented, Jul 10, 2020

@nomi9995 i am using mtsl startwithoutadd command. it is working as same ln -s <src> <dest>

mtsl startwithoutadd -s <src> -d <dest>

by the way thanks

1reaction
numandev1commented, Jun 28, 2020

@TimothyJAveni I have made package for tangible symlink https://www.npmjs.com/package/mtsl.

mtsl add -s ~/source-dir -d ~/User/destination-dir
mtsl start 0

you can use this package whenever metro maintainers do not give a good solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

symlink component is not resolving · Issue #8867 · expo/expo
Bug Report Summary of Issue (just a few sentences) I am making a new ecosystem where I need to run the symlink component...
Read more >
Symlinking metro.config breaks from Expo SDK 44 to 46. How ...
I am curious, is there a difference in linking between the different SDKs now? expo · symlink · Share.
Read more >
Working with monorepos - Expo Documentation
Monorepos are not for everyone. It requires in-depth knowledge of the used tooling, adds more complexity, and often requires specific tooling configuration.
Read more >
Symlinking React libraries for local development
Using and locking dependencies can lead to problems when you use the library in many different apps, as they may be running on...
Read more >
a problem occurred configuring project ':expo-modules-core'.
Just as we discussed in the comment section, I was able to resolve the issue by removing the react-native-reanimated package, as I was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found