Closed domnich closed 5 years ago
What does ls -lR /Users/idomnich/test/node_modules/iconv
print? The error message suggests node-iconv hasn't been compiled.
It prints:
LICENSE binding.gyp lib src README.md build node_modules support bin deps package.json test
And in build folder, there is only Release folder and no Debug folder...
Makefile binding.Makefile gyp-mac-tool Release config.gypi iconv.target.mk
There should be an iconv.node in build/Release, or build/Debug as a fallback. If there isn't, you (somehow) didn't build it. Try running node-gyp --directory node_modules/iconv rebuild
from your project's top-level directory.
Hello! I'm trying to create bundle js file from my ts file through webpack and Im receiving next error:
ModuleNotFoundError: Module not found: Error: Can't resolve '../build/Debug/iconv.node' in '/Users/idomnich/test/node_modules/iconv/lib'
node - v8.12.0 npm - v6.4.1
What I want is just to build my index.ts file, which contains 2 strings:
import { BrowserWindow, shell } from 'electron'; const jabra = require('jabra'); // iconv uses as sub module here, If you will try to remove const jabra = require('jabra') -> you will be able to create bundle file
I attached code sample and steps to reproduce this error are: 1) download example 2) npm install 3) npm run build:test
Archive.zip
Also tried to run node-gyp rebuild, node-gyp clean, npm install...and nothing of this didn't solve my problem
Any info will be very useful for me, thanks and Happy New Year!
Whole error text: