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

npm install => Cannot find type definition file for 'node'. #2411

Closed
micktaiwan opened this issue Oct 23, 2020 · 4 comments
Closed

npm install => Cannot find type definition file for 'node'. #2411

micktaiwan opened this issue Oct 23, 2020 · 4 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@micktaiwan
Copy link

Just following the steps from
https://github.com/googleapis/google-api-nodejs-client/tree/master/src/apis/calendar
for building a browser bundle

clone the repo => ok
then
$ cd src/apis/calendar
$ npm install

I get this error :

@google/calendar@0.1.0 prepare /home/mick/projects/google-api-nodejs-client/src/apis/calendar
npm run compile

@google/calendar@0.1.0 compile /home/mick/projects/google-api-nodejs-client/src/apis/calendar
tsc -p .

node_modules/gaxios/build/src/common.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node'.

1 ///

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Oct 24, 2020
@sofisl sofisl added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Oct 26, 2020
@sofisl
Copy link
Contributor

sofisl commented Oct 26, 2020

Hi there,

Is this issue still persisting? Can you confirm that you have the latest version? Afterwards, I would just recommend clearing out node_modules and then re-installing.

@micktaiwan
Copy link
Author

micktaiwan commented Oct 26, 2020

I have removed the node_modules folder, but the error persists when running "npm install" inside the src/apis/calendar/ folder.
I have the latest version since I have pulled the repo. Thank you for your help.

@sofisl
Copy link
Contributor

sofisl commented Oct 26, 2020

Hmm, I'm not able to reproduce the issue. Have you tried running npm i on the top-level folder as well? Can you also confirm you are on the latest version of this library? Thanks!

@sofisl sofisl added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Oct 26, 2020
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Oct 26, 2020
@sofisl
Copy link
Contributor

sofisl commented Dec 10, 2020

Closing this as we upgraded recently to webpack 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants