Closed Jonathan-de-Villiers closed 1 year ago
Are you using webpack 4, create react app?
I'm not sure it is an old app that started development back in 2018
You're using outdated and unmaintained tools. Switch to maintained and modern ones in order to use maintained and modern packages. Or use old versions of packages.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
This issue haunts us too. Expo-based app, using latest expo and pretty much all the latest package updates (bearing in mind expo compatibility). We're also on the latest LTS version of Node, and newest NPM, so "you're using outdated and unmaintained tools" definitely doesn't apply to us. The only thing we can't do is use "type": "module"
in our package.json, because this breaks the build in weird ways which I wasn't able to fix in a few days worth of debugging.
The package is installed in node_modules correctly though. Checked npm list --all
for anomalies, all good. Very strange.
This sounds like the latest of Expo doesn’t support support package exports. It’s a bug on their end.
@bartvanandel sorry you ran into a spot of trouble. The issue remains with Expo, which in return relies on metro. Metro has known issues handling standard ESM and export specifiers https://github.com/search?q=repo%3Afacebook%2Fmetro+esm&type=issues Metro and Expo need to resolve their issues.
Initial checklist
Affected packages and versions
"react-markdown": "^9.0.1",
Link to runnable example
No response
Steps to reproduce
I've just installed the package using yarn. imported it to a file and tried to use it.
Expected behavior
Hoped it would work
Actual behavior
it gave me the error and even when I added devlop it still isn't working
Runtime
Node v16
Package manager
yarn 1
OS
Windows
Build and bundle tools
No response