<p>There was an error in <code>lucid-cardano</code> library. It was fixed in this <a href="https://github.com/spacebudz/lucid/pull/108" rel="nofollow noreferrer">PR</a>. I was able to re-test and my Next.js project is working as expected.</p>

CC BY-SA 4.0
2022-10-28T23:15:47.620Z
2022-10-28T23:15:47.620Z
Falcon Stakepool
<p>I am getting the following error when trying to import <code>lucid-cardano</code> in a Next.js Typescript project:</p>
<pre><code>TypeError: Cannot set property Headers of #&lt;Object&gt; which has only a getter
    at file:/node_modules/lucid-cardano/esm/src/core/core.js:12:20 {
  page: '/'
}
</code></pre>
<p>I also found this recent issue submitted to Lucid: <a href="https://github.com/spacebudz/lucid/issues/106" rel="nofollow noreferrer">https://github.com/spacebudz/lucid/issues/106</a></p>
<p>Any ideas?</p>

<library><lucid>
Problem when importing Lucid in Next.js project with Typescript
# Problem when importing Lucid in Next.js project with Typescript

(Asked by: username_0 on 2022-10-28)

I am getting the following error when trying to import lucid-cardano in a Next.js Typescript project:
TypeError: Cannot set property Headers of # which has only a getter
    at file:/node_modules/lucid-cardano/esm/src/core/core.js:12:20 {
  page: '/'
}

I also found this recent issue submitted to Lucid: https://github.com/spacebudz/lucid/issues/106
Any ideas?

**Tags:** library, lucid

---

## 1 answers

### Answer by username_0 on 2022-10-28. Score: 0 | Accepted answer

There was an error in `lucid-cardano` library. It was fixed in this [PR](https://github.com/spacebudz/lucid/pull/108). I was able to re-test and my Next.js project is working as expected.


---

