Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"TS2351: This expression is not constructable" #57

Open
eaton opened this issue Jun 7, 2024 · 0 comments
Open

"TS2351: This expression is not constructable" #57

eaton opened this issue Jun 7, 2024 · 0 comments

Comments

@eaton
Copy link

eaton commented Jun 7, 2024

src/scratchpad.ts:4:20 - error TS2351: This expression is not constructable.
  Type 'typeof import("/Users/jeff/Work/@home/fyi-migration/node_modules/public-google-sheets-parser/@types/index")' has no construct signatures.

4 const parser = new PublicGoogleSheetsParser(process.env.GOOGLE_DEFAULT_SHEET, { sheetName: 'talks' });

Still have to figure out where exactly the issue is, but using this library from a TS 5.4 ESM project generates some immediate errors on trying to instantiate the class. Curiously, it does work, but the error suggests something in the type definitions might be a bit off. I'll be investigating further this weekend when I have a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant