Skip to content

Commit

Permalink
fix: fixed 'parse is not a function' error
Browse files Browse the repository at this point in the history
  • Loading branch information
hknokh committed Aug 13, 2024
1 parent c162684 commit 4364ad2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/components/api_engines/bulkApiV2_0Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import * as parse2 from 'csv-parse/lib/sync';
const parse2 = require('csv-parse/lib/sync');
//import * as parse2 from 'csv-parse/lib/sync';

import {
ApiEngineBase,
Expand Down
3 changes: 2 additions & 1 deletion src/modules/components/common_components/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import { Buffer } from 'buffer';
import { execSync } from 'child_process';
import * as parse2 from 'csv-parse/lib/sync';
//import * as parse2 from 'csv-parse/sync';
const parse2 = require('csv-parse/lib/sync');
import * as fs from 'fs';
import * as glob2 from 'glob';
import * as path from 'path';
Expand Down

0 comments on commit 4364ad2

Please sign in to comment.