odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
927 stars 173 forks source link

can't build electron package #40

Closed morder closed 3 years ago

morder commented 4 years ago

npm run build-electron I got this error

WARNING in ./node_modules/chokidar/lib/fsevents-handler.js
Module not found: Error: Can't resolve 'fsevents' in '/home/yanis/projects/free-tex-packer/node_modules/chokidar/lib'
 @ ./node_modules/chokidar/lib/fsevents-handler.js
 @ ./node_modules/chokidar/index.js
 @ ./src/client/platform/electron/FileSystem.js
 @ ./src/client/ui/ImagesList.jsx
 @ ./src/client/platform/electron/Controller.js
 @ ./src/client/index.js
 @ multi babel-polyfill ./src/client/index

My system is linux and fsevents didn't work on this system but chokidar requires it

rtalon83 commented 4 years ago

I'm testing electron project and yes, there is a WARNING about fsevents but I can make the app.

  1. build-electron (warning jsevents ignored)
  2. free-tex-packer/electron/package.json (npm install)
  3. free-tex-packer/electron/package.json ( npm start )

https://github.com/webpack/webpack/issues/8364

morder commented 4 years ago

@rtalon83 what is your system?

rtalon83 commented 4 years ago

Windows 10. 64

rtalon83 commented 4 years ago

Ok, your problem is in Linux.

piratesephiroth commented 4 years ago

so we can only build the project on MacOS...

morder commented 4 years ago

@piratesephiroth you can create virtual machine with any Linux distro and test building

piratesephiroth commented 4 years ago

@piratesephiroth you can create virtual machine with any Linux distro and test building

well, it actually builds just fine on Windows.

odrick commented 3 years ago

Build fine on native Win. Linux and Mac on Virtual Box.