Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Show the usage of SerialPort #1

Merged
merged 3 commits into from
Jul 25, 2019
Merged

Show the usage of SerialPort #1

merged 3 commits into from
Jul 25, 2019

Conversation

saltyshiomix
Copy link
Contributor

Please check this:

$ npm install
$ npm run dev

スクリーンショット 2019-07-25 5 38 49

  1. Add electron-renderer target in the next.config.js
  2. Use fixed electron version for rebuilding
  3. next has two webpack process: server side and client side. So we need to check electron process is defined!

If you have any questions, feel free to contact me :)

@@ -2,6 +2,8 @@ const withCss = require('@zeit/next-css');

module.exports = withCss({
webpack: (config, { isServer }) => {
config.target = 'electron-renderer';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is my mistakes...

Hot-fixed with [email protected] 🙏

@boneskull boneskull merged commit b94a40a into boneskull:master Jul 25, 2019
@boneskull
Copy link
Owner

This worked!
Thank you so much! I'll comment back on the issue

@Carlosf96
Copy link

Hello does this still work ?, I cannot get this to work for me :3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants