Skip to content

Missing dependency unist-util-stringify-position #8

Closed
@ocavue

Description

@ocavue

Subject of the issue

mdast-util-from-markdown v0.8.2 requires unist-util-stringify-position but doesn't include it as a dependency.

Your environment

  • OS: macOS v10.15
  • Packages: mdast-util-from-markdown v0.8.2
  • Env: node v15.2.1, yarn v2.4.0

Steps to reproduce

$ mkdir /tmp/playground
$ cd /tmp/playground
$ yarn init --yes
yarn init v1.22.10
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
✨  Done in 0.03s.
$ yarn add 'mdast-util-from-markdown'
yarn add v1.22.10
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...

success Saved lockfile.
success Saved 13 new dependencies.
info Direct dependencies
└─ mdast-util-from-markdown@0.8.2
info All dependencies
├─ @types/mdast@3.0.3
├─ @types/unist@2.0.3
├─ character-entities-legacy@1.1.4
├─ character-entities@1.2.4
├─ character-reference-invalid@1.1.4
├─ debug@4.3.1
├─ is-alphabetical@1.0.4
├─ is-alphanumerical@1.0.4
├─ is-hexadecimal@1.0.4
├─ mdast-util-from-markdown@0.8.2
├─ mdast-util-to-string@2.0.0
├─ micromark@2.10.1
└─ ms@2.1.2
✨  Done in 4.95s.
$ node
Welcome to Node.js v15.2.1.
Type ".help" for more information.
> const a = require("mdast-util-from-markdown")
Uncaught Error: Cannot find module 'unist-util-stringify-position'
Require stack:
- /private/tmp/playground/node_modules/mdast-util-from-markdown/dist/index.js
- /private/tmp/playground/node_modules/mdast-util-from-markdown/index.js
- <repl>
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
    at Function.Module._load (node:internal/modules/cjs/loader:763:27)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/private/tmp/playground/node_modules/mdast-util-from-markdown/dist/index.js',
    '/private/tmp/playground/node_modules/mdast-util-from-markdown/index.js',
    '<repl>'
  ]
}

Expected behavior

No missing dependency.

Actual behavior

Uncaught Error: Cannot find module 'unist-util-stringify-position'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions