retext-keywords
retext-keywords copied to clipboard
Error: Attempted import error: 'color' is not exported from 'unist-util-visit-parents/do-not-use-color' (imported as 'color').
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
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
- Start a new Next.js (V13) project in a clean directory
- pnpm install retext
- pnpm install retext-keywords
- pnpm install nlcst-to-string
- pnpm install retext-pos
- pnpm install to-vfile
- create a file called index.tsx
- copy the contents of the example given in the readme
- create the example.txt file in the same directory
- 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').
Affected runtime and version
Affected package manager and version
Affected OS and version
MacOS Sonoma 14.1.2
Build and bundle tools
Next.js
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.
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