---
title: "Comment by Marin on \"Publishing TypeScript React components to NPM\" | Hashnode"
description: "Hi, Thanks for the tutorial. However, I am facing some issues with Nextjs v12 when importing the component. It is saying that the export token does not exists.."
url: "https://hashnode.com/posts/publishing-typescript-react-components-to-npm/60f30734bb67011cb8369b7f/comment/62c64200c8efe473b8fe5389"
---

[Discussion](https://hashnode.com/posts/publishing-typescript-react-components-to-npm/60f30734bb67011cb8369b7f)

Comment [Publishing TypeScript React components to NPM](https://hashnode.com/posts/publishing-typescript-react-components-to-npm/60f30734bb67011cb8369b7f)

[Marin](https://hashnode.com/@Marin)

[Jul 7, 2022](https://hashnode.com/posts/publishing-typescript-react-components-to-npm/60f30734bb67011cb8369b7f/comment/62c64200c8efe473b8fe5389)

Hi,

Thanks for the tutorial. However, I am facing some issues with Nextjs v12 when importing the component. It is saying that the export token does not exists... I solved it by changing the export to something like:

export \* from './counter';
