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

Unable to resolve "devlop" from "node_modules/react-markdown/lib/index.js #801

Closed
4 tasks done
subraatakumar opened this issue Nov 20, 2023 · 11 comments
Closed
4 tasks done
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on

Comments

@subraatakumar
Copy link

Initial checklist

Affected packages and versions

"react-markdown": "^9.0.1",

Link to runnable example

No response

Steps to reproduce

I used this package in an expo app. For web it is working fine. But when i am trying to run it on android it shows error:

Android Bundling failed 111ms
Unable to resolve "devlop" from "node_modules/react-markdown/lib/index.js"

Expected behavior

should compile properly

Actual behavior

not compiling

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Nov 20, 2023
@JounQin
Copy link
Member

JounQin commented Nov 20, 2023

duplicate of #798, please search issues before raising.

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023

This comment was marked as resolved.

@wooorm wooorm added the 👯 no/duplicate Déjà vu label Nov 20, 2023
Copy link

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks,
— bb

This comment was marked as resolved.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Nov 20, 2023
@JounQin JounQin marked this as a duplicate of #798 Nov 20, 2023
@subraatakumar
Copy link
Author

subraatakumar commented Nov 20, 2023

duplicate of #798, please search issues before raising.

I am using it in react native. Can it be actually used in react native or not?

It is working fine for web.

@JounQin
Copy link
Member

JounQin commented Nov 20, 2023

It depends on your bundler whether it understands exports in package.json correctly.

@subraatakumar
Copy link
Author

It depends on your bundler whether it understands exports in package.json correctly.

Ok. Thanks 🙏

@ChristianMurphy
Copy link
Member

I am using it in react native. Can it be actually used in react native or not?

It should be possible to build the code with metro/expo, if it does not, that is bug in their build tool. Which expo would be the best place for support on https://github.com/expo/expo/discussions

That said once it builds, the components react-markdown uses are web focused, react-native as its own web-incompatible component system, see these discussions for the rendering side:

@holdenmatt
Copy link

(FYI for others) I also ran into this issue when using react-markdown in a chrome extension using Plasmo, which uses Parcel as the bundler.

The fix was to add a line to my package.json as described here:
https://parceljs.org/blog/v2-9-0/#new-resolver

(Will no longer be needed after Parcel 3 ships apparently)

@zereraz
Copy link

zereraz commented Jan 11, 2024

https://parceljs.org/blog/v2-9-0/#new-resolver

This didn't work for me, am building chrome extension with Parcel as bundler as well.

edit: it is working for me now with parcel version 2.11.0, was not working for 2.10.2

@Caplost
Copy link

Caplost commented May 25, 2024

@holdenmatt this work for me 。
just add at package.json file.
"@parcel/resolver-default": {
"packageExports": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👯 no/duplicate Déjà vu 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

7 participants