# Visual studio code shows error on new p5 serial instance

**URL:** <https://discourse.processing.org/t/visual-studio-code-shows-error-on-new-p5-serial-instance/32406>\
**Category:** Libraries\
**Created:** [September 25, 2021, 10:57am UTC](https://discourse.processing.org/t/visual-studio-code-shows-error-on-new-p5-serial-instance/32406 "2021-09-25T10:57:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![processing\_user](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Post date:** [September 25, 2021, 10:57am UTC](https://discourse.processing.org/t/visual-studio-code-shows-error-on-new-p5-serial-instance/32406/1 "2021-09-25T10:57:54Z")

</div>

hi,  
while using a working p5 serial library and sketch in VS code ide i get error on the line:

```auto
serial = new p5.SerialPort();

```

error being:

```auto
Property 'SerialPort' does not exist on type '(sketch: object, node: string | object) => void'.ts(2339)

```

following is screenshot:

 ![hweez](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0abc614a8e56674e6fe71ff6ff884eb48ebdb522.jpeg)

how can i solve this problem?

thank you
