Closed clementlize closed 2 years ago
Can you provide code of node-gyp1.js
?
Can you provide code of
node-gyp1.js
?
I spent nearly an hour looking for this file, but I couldn't find it. Not in the node_modules, not in the out folder, I don't understand where it can be.
Do you know where it might be?
Sorry no, I don't know your application and configuration, but based on an error message, you have invalid JS, i.e. global return
Ok thank you for your help. I ended up building again my project from scratch, I don't have any clue how this happened.
Bug report
I am trying to make an app using electron-forge and I have an error from terser-webpack-plugin. I can start my app but I can't run a make. My project is based on this template, based itself on the electron-forge Webpack+Typescript template
Actual Behavior
Here is my package.json dependencies:
Expected Behavior
The make process should complete, I'm sorry I don't know much about terser-webpack-plugin in particular.
How Do We Reproduce?
This is the tricky part. I made a new project using the electron-forge Webpack+Typescript template and added the native modules (sqlite3, @journeyapps/sqlcipher) and everything works perfectly.
I am currently unable to reproduce this outside of my working project. If you have time to investigate, here is the project, the branch to clone is wip_distribute2.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationI obviously took a close look at the issue #281 but nothing mentioned here works. The issue is also pretty old and concerned old versions.
The version requested by my dependencies is 5.1.1 ; I tried to pin 5.3.0 but the same error occurs. I also tried to pin terser version, without success.