albanm / node-libxslt

Node.js bindings for libxslt compatible with libxmljs
50 stars 68 forks source link

Critical dependency: the request of a dependency is an expression #60

Closed luastoned closed 3 years ago

luastoned commented 7 years ago

After just importing this library my app gets stuck, i'm using react with webpack.

Here is the warning/error:

WARNING in ./node_modules/bindings/bindings.js
76:22-40 Critical dependency: the request of a dependency is an expression

WARNING in ./node_modules/bindings/bindings.js
76:43-53 Critical dependency: the request of a dependency is an expression

node --version
v8.0.0

yarn --version
0.27.5

I'm on Windows 10 x64

albanm commented 7 years ago

Webpack allows you require any npm module, but not all of them will work in any context. This module uses native extensions for nodejs and is for nodejs only, not the browser.

luastoned commented 7 years ago

Thanks for the headsup, I do plan on using it in the backend.