human: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Issue Description
import { Human } from '@vladmandic/human';
emits ./node_modules/@vladmandic/human/dist/human.esm.js:25:70-77 - Warning: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
for latest angular project and stackblitz asks to install @tensorflow/tfjs-node
Steps to Reproduce https://stackblitz.com/edit/angular-ivy-sagwez?file=src/app/app.component.ts
Environment
- Human library version? 2.5.1
- Built-in demo or custom code? custom
- Type of module used (e.g.
js
,esm
,esm-nobundle
)? esm - Browser or NodeJS and version (e.g. NodeJS 14.15 or Chrome 89)? chrome 95
- OS and Hardware platform (e.g. Windows 10, Ubuntu Linux on x64, Android 10)? macos
- Framework (if any) (e.g. React, NextJS, etc.)? angular
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (8 by maintainers)
@gcardacci if you have an issue it may not be the same so please open a new issue
as this one is marked as resolved for over a year
and note exactly in which environment it is happening and what does your project look like
and if you can provide a reproduction, it would help a lot