Closed sevanskey closed 4 years ago
Hi @sevanskey,
It seems that NodeJs is not able to spawn the Webpack child process on your machine.
Maybe the OS is rejecting the IPC socket. Could you try with tns run android --no-watch
? (this will spawn the Webpack child process without IPC)
You can also validate this with the following NodeJs test.
1) Create index.js
:
const spawn = require('child_process').spawn
const path = require('path')
let childPath = path.join(__dirname, 'child.js')
spawn("node", [childPath], {
stdio: ["inherit", "inherit", "inherit", "ipc"],
})
2) Create child.js
in the same folder:
console.log("Hello from the Child Process!");
3) Execute node index.js
in the same folder.
4) If you get the same exception, try removing the ipc
from the stio
array.
Environment
package.json and webpack.config.js here.
Describe the bug Clean installs and I cannot run or debug android. Works perfectly fine debugging on android studio, however webpack is throwing an error every time in vscode. The project builds okay, I can copy the APK over and it runs as expected. However whether running on a connected physical device or emulator webpack is outputting the following:
Have done multiple clean installs and still getting the same issue. Have searched for the direct code causing this issue in my dir and cannot find it at all. Also to note have followed the process for updating nativescript-webpack-dev posted here with no success.
To Reproduce My steps were following:
Expected behavior
Should launch debug version of the app on device/emulator.