electron-react-typescript-webpack-boilerplate icon indicating copy to clipboard operation
electron-react-typescript-webpack-boilerplate copied to clipboard

build issues, projectName could not be inferred

Open mdjfs opened this issue 4 years ago • 0 comments

Hi! I'm building an app with this boilerplate and I get this error when I try to load the unpacked app in the external directory:

image

Uncaught Error: Project name could not be inferred. Please specify the projectName option. at new Conf (index.js:86) at Object../src/renderer/controllers/auth.ts (auth.ts:33) at __webpack_require__ (bootstrap:19) at Object../src/renderer/public/home/index.tsx (index.tsx:6) at __webpack_require__ (bootstrap:19) at Object../src/renderer/public/index.ts (index.ts:1) at __webpack_require__ (bootstrap:19) at Object../src/renderer/renderer.tsx (renderer.tsx:19) at __webpack_require__ (bootstrap:19) at startup:4

That looks like the app can't found the package.json (Curious: If you add manually the package.json to the unpackaged folder that should be fixed. But isn't a good way to fix it I think)

I'm building the app in windows npm run build:win. And I just try the app when I installed it or try copying/paste the unpacked folder to other directory

mdjfs avatar Apr 03 '21 04:04 mdjfs