关于“Redacting Sensitive Data with the DLP API”的评价

关于“Redacting Sensitive Data with the DLP API”的评价

评论

Ran into error with importing mime: /home/student_03_e75e363a1593/nodejs-docs-samples/dlp/redactImage.js:27 const mime = require('mime'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/student_03_e75e363a1593/nodejs-docs-samples/dlp/node_modules/mime/dist/src/index.js from /home/student_03_e75e363a1593/nodejs-docs-samples/dlp/redactImage.js not supported. Instead change the require of index.js in /home/student_03_e75e363a1593/nodejs-docs-samples/dlp/redactImage.js to a dynamic import() which is available in all CommonJS modules. at main (/home/student_03_e75e363a1593/nodejs-docs-samples/dlp/redactImage.js:27:16) at Object.<anonymous> (/home/student_03_e75e363a1593/nodejs-docs-samples/dlp/redactImage.js:83:1) { code: 'ERR_REQUIRE_ESM' } Node.js v20.17.0

April C. · 评论17 days之前

Issy P. · 评论17 days之前

Error as below: student_03_95a9145c222c@cloudshell:~/nodejs-docs-samples/dlp (qwiklabs-gcp-03-361e360df4d1)$ node redactImage.js $GCLOUD_PROJECT ~/dlp-input.png "" EMAIL_ADDRESS ~/dlp-redacted.png /home/student_03_95a9145c222c/nodejs-docs-samples/dlp/redactImage.js:27 const mime = require('mime'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/student_03_95a9145c222c/nodejs-docs-samples/dlp/node_modules/mime/dist/src/index.js from /home/student_03_95a9145c222c/nodejs-docs-samples/dlp/redactImage.js not supported. Instead change the require of index.js in /home/student_03_95a9145c222c/nodejs-docs-samples/dlp/redactImage.js to a dynamic import() which is available in all CommonJS modules. at main (/home/student_03_95a9145c222c/nodejs-docs-samples/dlp/redactImage.js:27:16) at Object.<anonymous> (/home/student_03_95a9145c222c/nodejs-docs-samples/dlp/redactImage.js:83:1) { code: 'ERR_REQUIRE_ESM' } Node.js v20.17.0

Georgia S. · 评论17 days之前

the image based dlp one didn't work, several people in my training also didn't get it working.

Keziah F. · 评论17 days之前

Good lab but got errors on the image redaction step about how the mime package was being imported

Joshua v. · 评论17 days之前

Arun N. · 评论17 days之前

Bima Shakti Ramadhan U. · 评论17 days之前

Joris D. · 评论17 days之前

Miya O. · 评论17 days之前

Fadhilah N. · 评论17 days之前

T.J. Y. · 评论17 days之前

Yacine B. · 评论17 days之前

Pajri Z. · 评论17 days之前

Pajri Z. · 评论17 days之前

Ketut A. · 评论17 days之前

Marco N. · 评论18 days之前

ok

Kristian D. · 评论18 days之前

Fiky B. · 评论18 days之前

Charderra Eka B. · 评论18 days之前

Arya Aji K. · 评论18 days之前

Yanuar F. · 评论18 days之前

Shan M. · 评论18 days之前

Samuel Mahesa S. · 评论18 days之前

damar G. · 评论18 days之前

Saeful S. · 评论18 days之前

我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。