You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
So I wanted to create a simple GUI to start up a BrowserSync server for our QA team.
I cannot figure out why browsersync is unavailable after building.
The app works as expected when using it in development via npm run dev
After I try to build the app for darwin using: npm run build:darwin
The app seems to build fine, but after trying to run it I get the error:
"Uncaught Exception: Error Cannot Find Module 'browser-sync' ... "
If you are trying to use any npm packages within the scope of electron.js (or the main process), it will not be available in production builds as the current setup ONLY bundles the renderer process.
So I wanted to create a simple GUI to start up a BrowserSync server for our QA team.
I cannot figure out why browsersync is unavailable after building.
The app works as expected when using it in development via
npm run dev
After I try to build the app for darwin using:
npm run build:darwin
The app seems to build fine, but after trying to run it I get the error:
"Uncaught Exception: Error Cannot Find Module 'browser-sync' ... "
I have followed the steps outlined here:
https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md
for building node modules for electron but have not seen any difference in the outcome. I'm wondering if i missed something in configuring the webpack build?
The text was updated successfully, but these errors were encountered: