Manfred Schneider
Manfred Schneider

Reputation: 55

Module tedious has no exported member ColumnValue

I test a web application with typescript and playwright. So I read and write data to and from a SQL Server 2019 database. Therefore I use tedious. Since yesterday I used the version 11.0.8 and all worked fine. Today I have made an update to the newest version 18.6.1

In the test class I do an import for ColumnValue:

import { ColumnValue } from "tedious" 

VS Code shows no the error message - module tedious has no exported member ColumnValue.

In node_modules@types/tedious/index.d.ts is the interface ColumnValue (line 422-425) exported.

Does anyone have a solution for this?

Many thanks in advance!

Upvotes: 1

Views: 50

Answers (2)

Borewit
Borewit

Reputation: 923

Uninstall @types/tedious as the tedious package already has TypeScript types included.

npm uninstall @types/tedious

It looks like ColumnValue no longer exists, in tedious.

Upvotes: 1

Manfred Schneider
Manfred Schneider

Reputation: 55

This was the solution.

npm uninstall tedious --save
npm uninstall tedious includes=dev @types/tedious
npm install tedious

Upvotes: 0

Related Questions