I am encountering an error while using the `rehype-pretty-code` package in a Next.js project, specifically when utilizing the `transformerCopyButton` feature. The error message I receive is:
```ts
…
### To Reproduce
When i've switch to `next.config.ts`, i had this error:
```bash
> www@0.1.0 dev C:\Users\mehdi\OneDrive\Bureau\dotUI\www
> next dev --turbo
node:internal/errors:497
Er…