Skip to content

Error: Attempted import error: 'color' is not exported from 'unist-util-visit-parents/do-not-use-color' (imported as 'color'). #22

@daveleee

Description

@daveleee

Initial checklist

Affected packages and versions

 "retext": "^9.0.0",     "retext-keywords": "^8.0.1",     "retext-pos": "^5.0.0",    "nlcst-to-string": "^4.0.0",    "to-vfile": "^8.0.0",

Link to runnable example

No response

Steps to reproduce

  1. Start a new Next.js (V13) project in a clean directory
  2. pnpm install retext
  3. pnpm install retext-keywords
  4. pnpm install nlcst-to-string
  5. pnpm install retext-pos
  6. pnpm install to-vfile
  7. create a file called index.tsx
  8. copy the contents of the example given in the readme
  9. create the example.txt file in the same directory
  10. run app

Expected behavior

We should be able to see keywords and phrases, but instead, we encounter the following error:

./node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.js
Attempted import error: 'color' is not exported from 'unist-util-visit-parents/do-not-use-color' (imported as 'color').

image
image

Affected runtime and version

node@18.16.0

Affected package manager and version

pnpm@8.11.0

Affected OS and version

MacOS Sonoma 14.1.2

Build and bundle tools

Next.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    👎 phase/noPost cannot or will not be acted on🤷 no/invalidThis cannot be acted upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions