Next.js and @fullstory/babel-plugin-annotate-react

Answered

I am running into an issue in which my new app is on Next.js v14 and as such, I need to instsall the npm @fullstory/babel-plugin-annotate-react. Unfortunetly, I have to use .babelrc, and that would mean I have to opt out of SWC on the next.j build. I don't want to do that. 

Is there another avenue/alternative to @fullstory/babel-plugin-annotate-react, in which I can annotate my react components? Any plans on releasing for next.js?

0

Comments

1 comment

  • Official comment

    Hi dean sacramone 

    Thanks for posting on the Community!

    Both our eslint plugin and Annotate React plugin are open source options to assist with adding stable selectors to elements. We've had customers adapt the later to use with Next.js but as we're not experts in NextJS we won't be able to give you specific guidance around this.

    Does this suggestion help at all?
    Gemma

Please sign in to leave a comment.

Didn't find what you were looking for?

New post