Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
mdast-util-gfm-task-list-item/lib/index.js
Steps to reproduce
The application was failing to bundle with the following error:
GET http://localhost:8081/index.ts.bundle?platform=web&dev=true&hot=false&transform.engine=hermes&transform.routerRoot=app&unstable_transformProfile=hermes-stable net::ERR_ABORTED 500 (Internal Server Error)
This was caused by typos in multiple dependencies:
-
In
mdast-util-gfm-table@2.0.0
, there was an import statement:import {ok as assert} from 'devlop'
The package name was misspelled - it should have been
develop
.
Solution Applied
- Fixed the typo in
mdast-util-gfm-table/lib/index.js
by changing'devlop'
to'develop'
- Installed the
develop
package which was missing - Created patches using
patch-package
to ensure the fixes persist even if dependencies are reinstalled
Environment Details
-
Node.js: v18.20.8
-
npm: 10.8.2
-
macOS: 15.4 (BuildVersion: 24E248)
-
Expo CLI: 0.22.22
-
Metro: 0.80.6
-
Affected packages:
- mdast-util-gfm-table@2.0.0
- mdast-util-gfm-task-list-item@2.0.0
Bug Report Information
This appears to be a bug in the mdast-util-gfm
ecosystem packages. The typos prevent the application from bundling correctly when using Metro bundler with Hermes for web.
Actual behavior
Web Bundling failed 7188ms index.ts (941 modules)
Unable to resolve "devlop" from "node_modules/mdast-util-gfm-task-list-item/lib/index.js"
Expected behavior
Web Built
Runtime
node@v18.20.8
Package manager
npx expo 0.22.22
Operating system
macOS 15.4
Build and bundle tools
other (please specify in steps to reproduce)