Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
daveleee opened this issue Dec 7, 2023 · 2 comments
Labels
🙊 open/needs-repro This needs a reproduction 🤞 phase/open Post is being triaged manually

Comments

@daveleee
Copy link

daveleee commented Dec 7, 2023

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/[email protected]/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

[email protected]

Affected package manager and version

[email protected]

Affected OS and version

MacOS Sonoma 14.1.2

Build and bundle tools

Next.js

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 7, 2023
@ChristianMurphy
Copy link
Member

ChristianMurphy commented Dec 7, 2023

welcome @daveleee! 👋
Sorry you ran into a spot of trouble.

I can't replicate the issue with the steps you provided.
It works fine https://stackblitz.com/edit/stackblitz-starters-j7cta1?file=app%2Fpage.tsx
You most likely have a misconfigured Next.js instance or are experiencing a bug with pnpm.

If you do believe it is an issue in retext-keywords please share a reproducible example.
Otherwise this will be closed as an external issue.

@ChristianMurphy ChristianMurphy added the 🙊 open/needs-repro This needs a reproduction label Dec 7, 2023
Copy link

github-actions bot commented Dec 7, 2023

Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing a reproduction: It’s not yet clear whether this is a problem. Here are a couple tips:

  • Thoroughly document how to reproduce the problem, in steps or with code
  • Don’t link to your complete project: make the repro as tiny as possible, preferrably with only the problematic project in question
  • Make sure you’re on the latest versions of projects (and node/npm/yarn!)
  • The best issue report is a failing test proving it

Thanks,
— bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙊 open/needs-repro This needs a reproduction 🤞 phase/open Post is being triaged manually
Development

No branches or pull requests

2 participants