#1221·plasmo

[BUG] bundler is having issues with a dependency that uses 'import fields'

Author: joeyhotzCreated Mar 6, 2025Updated Mar 23, 2026
Labelsbug

What happened?

When we build our project, we're getting this error

:red_circle: ERROR  | Failed to resolve '#minpath' from './node\_modules/vfile/lib/index.js'

Our codebase is using a package called 'react-markdown' which uses a dependency 'vfile'. Vfile uses import fields which the plasmo bundler doesn't seem to like. Any chance you have some guidance on the issue or any way we can get it resolved

Thank you

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

No response

Relevant log output

bash
:red_circle: ERROR  | Failed to resolve '#minpath' from './node\_modules/vfile/lib/index.js'

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.