googleapis / googleapis/google-cloud-node

TypeError: Cannot assign to read only property 'name' of function 'function generateUUID

Open
#4,788 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
- Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
- Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq

If you are still having issues, please be sure to include as much information as possible:

#### Environment details

- which product (packages/*): require('@google-cloud/translate').v2;
- OS: Windows 10 Pro
- Node.js version: v18.16.1
- npm version: 9.5.1
- google-cloud-node version:

├── @google-cloud/translate@8.0.2
├── async@3.2.4
├── eslint-config-standard@17.1.0
├── eslint-plugin-import@2.29.0
├── eslint-plugin-n@16.2.0
├── eslint-plugin-promise@6.1.1
├── eslint@8.52.0
└── readline-sync@1.4.10

#### Steps to reproduce

fs = require('fs')
const projectId = 'My-PROJECT-ID;

// Imports the Google Cloud client library
const { Translate } = require('@google-cloud/translate').v2;

Error Messages:

Exception has occurred: TypeError: Cannot assign to read only property 'name' of function 'function generateUUID(value, namespace, buf, offset) { var _namespace; if (typeof value === 'string') ...... }' at v35 (C:\Users\khy\Documents\node_modules\uuid\dist\v35.js:73:23) at Object. (C:\Users\khy\Documents\node_modules\uuid\dist\v3.js:14:27) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (C:\Users\khy\Documents\node_modules\uuid\dist\index.js:63:34) at Module._compile (node:internal/modules/cjs/loader:1256:14)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.