You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ISC-MPM-db-sys-services@1.0.0 build
> tsc -p tsconfig.json
node_modules/@databricks/sql/dist/contracts/IDBSQLSession.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node-int64'.
1 /// <reference types="node-int64" />
~~~~~~~~~~
node_modules/@databricks/sql/dist/DBSQLClient.d.ts:3:8 - error TS1192: Module '"C:/MPM/MPM1/isc-mpm-db-sys-services/src/production/ISC-MPM-db-sys-services/node_modules/@databricks/sql/thrift/TCLIService"' has no default export.
3 import TCLIService from '../thrift/TCLIService';
~~~~~~~~~~~
node_modules/@databricks/sql/dist/DBSQLLogger.d.ts:1:8 - error TS1259: Module '"C:/MPM/MPM1/isc-mpm-db-sys-services/src/production/ISC-MPM-db-sys-services/node_modules/winston/index"' can only be default-imported using the 'esModuleInterop' flag
1 import winston, { Logger } from 'winston';
~~~~~~~
node_modules/winston/index.d.ts:219:1
219 export = winston;
~~~~~~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
node_modules/@databricks/sql/dist/dto/InfoValue.d.ts:2:23 - error TS2688: Cannot find type definition file for 'node-int64'.
2 /// <reference types="node-int64" />
~~~~~~~~~~
node_modules/@databricks/sql/dist/hive/HiveDriver.d.ts:1:8 - error TS1192: Module '"C:/MPM/MPM1/isc-mpm-db-sys-services/src/production/ISC-MPM-db-sys-services/node_modules/@databricks/sql/thrift/TCLIService"' has no default export.
1 import TCLIService from '../../thrift/TCLIService';
~~~~~~~~~~~
node_modules/@databricks/sql/dist/index.d.ts:2:8 - error TS1192: Module '"C:/MPM/MPM1/isc-mpm-db-sys-services/src/production/ISC-MPM-db-sys-services/node_modules/@databricks/sql/thrift/TCLIService"' has no default export.
2 import TCLIService from '../thrift/TCLIService';
Activity
kravets-levko commentedon Feb 13, 2023
Hi @deepikaarava! Can you please share your
tsconfig.jsonfile as well? Also, please make sure that you don't try to compile files fromnode_modulesdeepikaarava commentedon Feb 14, 2023
{ "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "noUnusedLocals": true, "target": "es6", "sourceMap": true, "outDir": "./dist", "baseUrl": "./" }, "exclude": ["node_modules", "dist"] }kravets-levko commentedon Feb 14, 2023
One more question: how do you run
tsccommand exactly?kravets-levko commentedon Sep 8, 2023
Hi @deepikaarava! Have you managed to figure this issue out yourself? Please let me know if you still need a help, or I'll close this issue as stale
jm-lovelace commentedon Apr 22, 2024
I'm getting this same issue. Trying to use this package in an Azure Functions TypeScript app.
J-Bradlee commentedon Aug 21, 2024
I had a similar issue and was able to fix it by adding
"esModuleInterop": true,into the tsconfig.json under compiler options:[SEA-NodeJS] Address #416 round-3 review: KERNEL_REV bump, binding-sh…
[SEA-NodeJS] Kernel backend: connection/statement options, TLS & conf…