<p>Looks like L.Data.BigInt doesn't exist in the code. You'll have to choose L.Data.Integer or another type to support what you need. For that matter, I don't see L.Data.String either. The data types available are inside the Data object starting around line 38 in the source listed below.</p>
<p>This is what they suggest to use in place of your current needs.</p>
<pre><code>| bigint // Integer
| string // Bytes in hex
</code></pre>
<p><a href="https://deno.land/x/lucid@0.10.1/src/plutus/data.ts?source#L38" rel="nofollow noreferrer">https://deno.land/x/lucid@0.10.1/src/plutus/data.ts?source#L38</a></p>
<p>Update:</p>
<pre><code>const VestingDatum = L.Data.Object({
    beneficiary: L.Data.Bytes(),
    deadline: L.Data.Integer()
});
</code></pre>
<p><a href="https://github.com/spacebudz/lucid/blob/c4da80a93ba70dde47c02e31036631e8be494620/src/examples/typed_data.ts#L12" rel="nofollow noreferrer">https://github.com/spacebudz/lucid/blob/c4da80a93ba70dde47c02e31036631e8be494620/src/examples/typed_data.ts#L12</a></p>

CC BY-SA 4.0
2023-04-14T01:14:55.807Z
Hi @PREEB, it's still not working, I use L.Data.Integer, now the error is Error: Could not serialize the data: Unsupported type, I also use L.Data.bigint but got another error TypeError: Cannot read properties of undefined (reading 'Symbol(TypeBox.Modifier)')
Erwin Kurnia
CC BY-SA 4.0
2023-04-14T13:47:57.300Z
@ErwinKurnia I added an update to my answer. You'll need to change both data types. The link below is to an example where I found that.
PREEB
CC BY-SA 4.0
2023-04-14T23:17:25.813Z
Hi @PREEB, now I change it to beneficiary: L.Data.Bytes() and deadline: L.Integer(), now the error is lucid_cardano__WEBPACK_IMPORTED_MODULE_3__.Integer is not a function and error export 'Integer' (imported as 'L') was not found in 'lucid-cardano, I use "lucid-cardano": "^0.9.1"
Erwin Kurnia
CC BY-SA 4.0
2023-04-14T23:51:18.260Z
The error is gone now, after I explicitly import Data using import {Blockfrost, Data, Lucid}  from 'lucid-cardano'; thank you @PREEB
Erwin Kurnia
CC BY-SA 4.0
2023-04-13T15:07:21.490Z
2023-04-14T13:46:23.740Z
2023-04-14T13:46:23.740Z
PREEB
<p>I'm trying to build lucid to connect with cardano smartcontract from scratch using webpack, but I always getting this error related to datum data</p>
<p><strong>Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Symbol(TypeBox.Modifier)'</strong></p>
<p>this error referring to this datum data</p>
<pre><code>const VestingDatum = L.Data.Object({
    beneficiary: L.Data.String,
    deadline: L.Data.BigInt
});
</code></pre>
<p>the error is gone when I deleting this VestingDatum but the script still not working because it need the VestingDatum data  ,
am I missing something ? and how to solve this problem ?</p>

<plutus-pioneer-program><lucid>
Lucid Cardano Datum Error
# Lucid Cardano Datum Error

(Asked by: username_0 on 2023-04-13)

I'm trying to build lucid to connect with cardano smartcontract from scratch using webpack, but I always getting this error related to datum data
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Symbol(TypeBox.Modifier)'
this error referring to this datum data
const VestingDatum = L.Data.Object({
    beneficiary: L.Data.String,
    deadline: L.Data.BigInt
});

the error is gone when I deleting this VestingDatum but the script still not working because it need the VestingDatum data  ,
am I missing something ? and how to solve this problem ?

**Tags:** plutus-pioneer-program, lucid

---

## 1 answers

### Answer by username_1 on 2023-04-13. Score: 1 | Accepted answer

Looks like L.Data.BigInt doesn't exist in the code. You'll have to choose L.Data.Integer or another type to support what you need. For that matter, I don't see L.Data.String either. The data types available are inside the Data object starting around line 38 in the source listed below.
This is what they suggest to use in place of your current needs.
| bigint // Integer
| string // Bytes in hex

https://deno.land/x/lucid@0.10.1/src/plutus/data.ts?source#L38
Update:
const VestingDatum = L.Data.Object({
    beneficiary: L.Data.Bytes(),
    deadline: L.Data.Integer()
});

https://github.com/spacebudz/lucid/blob/c4da80a93ba70dde47c02e31036631e8be494620/src/examples/typed_data.ts#L12

> **Comments:**
> **username_0**: Hi @PREEB, it's still not working, I use L.Data.Integer, now the error is Error: Could not serialize the data: Unsupported type, I also use L.Data.bigint but got another error TypeError: Cannot read properties of undefined (reading 'Symbol(TypeBox.Modifier)')  
> **username_1**: @ErwinKurnia I added an update to my answer. You'll need to change both data types. The link below is to an example where I found that.  
> **username_0**: Hi @PREEB, now I change it to beneficiary: L.Data.Bytes() and deadline: L.Integer(), now the error is lucid_cardano__WEBPACK_IMPORTED_MODULE_3__.Integer is not a function and error export 'Integer' (imported as 'L') was not found in 'lucid-cardano, I use "lucid-cardano": "^0.9.1"  
> **username_0**: The error is gone now, after I explicitly import Data using import {Blockfrost, Data, Lucid}  from 'lucid-cardano'; thank you @PREEB  

---

