-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run packaged app with tadeious or mssql package #3733
Comments
Do you have electron rebuild installed? |
No i don't have it installed, should I? |
try adding it and see if it changes something. I'm also having problem running the packaged version after installing native modules |
In my case, unfortunately, I had to change it to the webpack which solved the problem but made my build and start take a lot more time |
I added it in "rebuild": "electron-rebuild -f -w tedious" and then run: npm run rebuild
npm run package When I run it i get the same issue |
In my case that _interopNamespaceDefault was being used to do something with the 'process' import. Is it the same for you? Anyway, it might be worth changing to webpack just to make it work if you are in a hurry. Also it would be good to update the issue with a reproducible repo |
Do you know the process of changing to webpack? Thanks |
For me I just created a new webpack template and started copying from that template to the original repo. It should be straightforward if you have a little experience with webpack. Besides that, I do not have a series of steps for you to follow, you'll need to change things and test if it works with the |
I have also encountered these problems, |
Pre-flight checklist
Electron Forge version
7.5.0
Electron version
v32.1.2
Operating system
Windows 11
Last known working Electron Forge version
No response
Issue
I'm encountering issues with packaging my Electron app using Electron Forge, especially regarding including the
mssql
module. The module works fine in the development environment but fails to load in the packaged version. Additionally, I have tried using thetedious
package, and I am running into similar issues.I started creating the app using vite-typescript template.
The errors vary depending on the configuration:
mssql
as external invite.config.js
:In this case, the development version fails to run, giving the following error:
TypeError: Cannot read properties of undefined (reading 'get') at _interopNamespaceDefault
mssql
as external invite.config.js
:The development version works, but when I package the app using Electron Forge, I get the following error when trying to start the app:
Error: Cannot find module 'mssql'
I also tried disabling
asar
andcontextIsolation
but that does not help.How do you get some of these packages running?
Actual behavior
The app does not run in packaged mode when this packaged are used.
Steps to reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: