Error: Cannot find module 'electron-pos-printer' Require stack:
See original GitHub issueThis is how I access electron-pos-printer : `import React, { useEffect, useState } from ‘react’ import { ProductListProp } from ‘…/kasir/ProductListView’ import path from ‘path’; import { Button, RadioGroup, RenderIf } from ‘react-rainbow-components’;
interface RadioValue { value: string, label: string }
export const CheckoutStruk: React.FC<any & ProductListProp> = (props: any) => {
let { remote } = require(“electron”);
const { PosPrinter } = remote.require(“electron-pos-printer”);
`
It works well in development, but when I build for production, this happens :
Anyone face the same issue ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Cannot find module 'electron' - node.js - Stack Overflow
3" version of Electron. The problem that I'm having is that when I try to include the 'electron' module in a renderer process...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
In my case, I need to install the react-icons package so the freeCodeCamp icon can be resolved. I'll do that by running yarn...
Read more >I have an error it says: Error: Cannot find module '.env'
Error : Cannot find module '.env' Require stack: C:\Users\User\Desktop\mongoDB\mflix-js\index.js at Function.Module.
Read more >Error: Cannot find module - Running Tests - CircleCI Discuss
Hi, While running test in cirlce CI I am facing this issue. Error: Cannot find module '@pages/CreateCertificatePage' Require stack: ...
Read more >Npm can't find module "semver" error in Ubuntu 19.04
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up. ... Stack...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Possible solution #46
I have the same problem, in my case i use vue-electron, Did you resolve it?