nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep requiring uuid/v4 is deprecated as of uuid@7.x.

cncolder opened this issue · comments

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

DeprecationWarning: Deep requiring like const uuidv4 = require('uuid/v4'); is deprecated as of uuid@7.x. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser. See https://github.com/uuidjs/uuid/blob/master/README.md#upgrading-from-v3x-of-this-module for more information.

Expected behavior

Minimal reproduction of the problem with instructions

import * as uuid from 'uuid/v4';

What is the motivation / use case for changing the behavior?

Environment


@nestjs/typeorm: 6.3.3

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Fixed in 6.3.4