Level 1
This is my code
webpack.mix.js
const mix = require('laravel-mix');
mix
.js('resources/js/test.js', 'public/js')
.webpackConfig({
target: 'node',
})
test.js
const serialport = require('serialport');
Hi,
I tested a package in a simple application node and run normally. But when I run the same package in laravel mix I get this error
WARNING in ./node_modules/bindings/bindings.js 76:22-40
Critical dependency: the request of a dependency is an expression
I try with many packages:
serialport node-wifi local-devices escpos and other
it's been a few days trying and nothing. Someone can help me?
Thanks
Please or to participate in this conversation.