Giter Site home page Giter Site logo

OSX first build & startup about nuclear HOT 10 CLOSED

nukeop avatar nukeop commented on July 17, 2024
OSX first build & startup

from nuclear.

Comments (10)

grogcw avatar grogcw commented on July 17, 2024

And to be as helpful as I can, here's an stripped error/warning log :

$ npm install

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@^1.0.3 (node_modules/7zip-bin/node_modules/7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^2.0.2 (node_modules/7zip-bin/node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN [email protected] requires a peer of react@^0.14.0 but none was installed.

$ npm run dev

[3] external "querystring" 42 bytes {0} [not cacheable]

[752] external "url" 42 bytes {0} [not cacheable]

[756] external "assert" 42 bytes {0} [not cacheable]

[758] external "http" 42 bytes {0} [not cacheable]
[759] external "https" 42 bytes {0} [not cacheable]
[760] external "zlib" 42 bytes {0} [not cacheable]

[762] external "buffer" 42 bytes {0} [not cacheable]

[815] ./~/css-loader?modules&sourceMap&importLoaders=1&localIdentName=[name][local]_[hash:base64:5]!./app/components/SidebarMenu.css 2.91 kB {0} [built]
[816] external "path" 42 bytes {0} [not cacheable]

[826] external "fs" 42 bytes {0} [not cacheable]

[829] external "constants" 42 bytes {0} [not cacheable]

[831] external "stream" 42 bytes {0} [not cacheable]
[832] external "util" 42 bytes {0} [not cacheable]

[855] external "electron" 42 bytes {0} [not cacheable]

[883] external "tls" 42 bytes {0} [not cacheable]

[886] external "string_decoder" 42 bytes {0} [not cacheable]
[887] external "events" 42 bytes {0} [not cacheable]

[889] external "os" 42 bytes {0} [not cacheable]
[890] external "timers" 42 bytes {0} [not cacheable]

[1124] external "net" 42 bytes {0} [not cacheable]

[1126] external "punycode" 42 bytes {0} [not cacheable]

[1134] external "crypto" 42 bytes {0} [not cacheable]

WARNING in .//ajv/dist/ajv.bundle.js
Critical dependencies:
1:476-483 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./
/ajv/dist/ajv.bundle.js 1:476-483
webpack: Compiled with warnings.

from nuclear.

nukeop avatar nukeop commented on July 17, 2024

Thanks for reporting this.

A similar problem was reported some time ago in #23. Could you please try what I suggested there? I know electron looks for resources in different locations on Macs, but I can't test that myself.

from nuclear.

grogcw avatar grogcw commented on July 17, 2024

I tried, but the problem remains :/

from nuclear.

nukeop avatar nukeop commented on July 17, 2024

Mac builds work now.

from nuclear.

grogcw avatar grogcw commented on July 17, 2024

Actually, sorry to bother you, but I can't get it to work with the latest pull / dmg / app...

$ npm run watch

[email protected] watch ~/nuclear-0.4.0
webpack-dev-server --inline --progress --env=dev

Happy[jsx]: Version: 4.0.1. Threads: 3

Project is running at http://localhost:8080/
webpack output is served from http://localhost:8080/
Content not from webpack is served from ~/nuclear-0.4.0/dist
Happy[jsx]: All set; signaling webpack to proceed.
Happy[scss]: Version: 4.0.1. Threads: 3
Happy[scss]: All set; signaling webpack to proceed.
Hash: 11950e51127b91f084a8 a Version: webpack 3.10.0
Time: 9246ms
Asset Size Chunks Chunk Names
font/Lato-Regular.svg 80.3 kB [emitted] fonts
fonts.css 1.33 kB [emitted] fonts
font/Lato-Light.woff 29.9 kB [emitted] fonts
font/Lato-Light.woff2 23.2 kB [emitted] fonts
font/Lato-Light.ttf 63 kB [emitted] fonts
font/Lato-Light.svg 79.7 kB [emitted] fonts
font/Lato-Regular.eot 26.3 kB [emitted] fonts
font/Lato-Regular.woff 28.4 kB [emitted] fonts
font/Lato-Regular.woff2 23.3 kB [emitted] fonts
font/Lato-Light.eot 24.3 kB [emitted] fonts
font/Lato-Regular.ttf 60.1 kB [emitted] fonts
font/Lato-Bold.woff 27.8 kB [emitted] fonts
font/Lato-Bold.eot 25.9 kB [emitted] fonts
font/Lato-Bold.woff2 22.8 kB [emitted] fonts
font/Lato-Bold.ttf 58.7 kB [emitted] fonts
font/Lato-Bold.svg 80.9 kB [emitted] fonts
15e7f8b5ebb95fa651334d3c020de5c3.png 3.67 kB [emitted]
3db9a2628623d6c03693faf31b3f05f0.png 267 kB [emitted] [big]
bundle.js 6.08 MB 0 [emitted] [big] main
[./app/App.js] ./app/App.js 12.5 kB {0} [built]
[./app/index.js] ./app/index.js 1.22 kB {0} [built]
[./app/store/configureStore.js] ./app/store/configureStore.js 1 kB {0} [built]
[./node_modules/loglevel/lib/loglevel.js] ./node_modules/loglevel/lib/loglevel.js 7.86 kB {0} [built]
[./node_modules/react-dom/index.js] ./node_modules/react-dom/index.js 1.36 kB {0} [built]
[./node_modules/react-hot-loader/index.js] ./node_modules/react-hot-loader/index.js 213 bytes {0} [built]
[./node_modules/react-hot-loader/patch.js] ./node_modules/react-hot-loader/patch.js 213 bytes {0} [built]
[./node_modules/react-redux/es/index.js] ./node_modules/react-redux/es/index.js 230 bytes {0} [built]
[./node_modules/react-router-dom/es/index.js] ./node_modules/react-router-dom/es/index.js 925 bytes {0} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 7.91 kB {0} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 kB {0} [built]
[./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.31 kB {0} [built]
[0] multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js 88 bytes {0} [built]
[./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.04 kB {0} [built]
[./node_modules/webpack/hot/only-dev-server.js] (webpack)/hot/only-dev-server.js 2.37 kB {0} [built]
+ 1372 hidden modules

WARNING in ./node_modules/encoding/lib/iconv-loader.js
9:12-34 Critical dependency: the request of a dependency is an expression
@ ./node_modules/encoding/lib/iconv-loader.js
@ ./node_modules/encoding/lib/encoding.js
@ ./node_modules/node-fetch/lib/body.js
@ ./node_modules/node-fetch/index.js
@ ./node_modules/isomorphic-fetch/fetch-npm-node.js
@ ./node_modules/pitchfork-bnm/index.js
@ ./app/actions/dashboard.js
@ ./app/reducers/dashboard.js
@ ./app/reducers/index.js
@ ./app/store/configureStore.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
webpack: Compiled with warnings.

App / Dmg are opening fine but the widows is blank.
The menubar menu is running tho...

If you have any ideas.... :/

from nuclear.

nukeop avatar nukeop commented on July 17, 2024

Are you running the dev version? When you open the electron window, is there any output in the console? I developed most of the new version on a Mac so it should run just fine.

from nuclear.

grogcw avatar grogcw commented on July 17, 2024

I run it from source code, from the compiled app, it's only showing a blank window (and I can't click anywhere to see the console).

From source, it shows "Cannot GET /" with the following errors in terminal :

WARNING in ./node_modules/encoding/lib/iconv-loader.js
9:12-34 Critical dependency: the request of a dependency is an expression
@ ./node_modules/encoding/lib/iconv-loader.js
@ ./node_modules/encoding/lib/encoding.js
@ ./node_modules/node-fetch/lib/body.js
@ ./node_modules/node-fetch/index.js
@ ./node_modules/isomorphic-fetch/fetch-npm-node.js
@ ./node_modules/pitchfork-bnm/index.js
@ ./app/actions/dashboard.js
@ ./app/reducers/dashboard.js
@ ./app/reducers/index.js
@ ./app/store/configureStore.js
@ ./app/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js

and in console (via safari @localhost:8080) :

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (localhost, line 0)
[Error] Refused to execute a script because its hash, its nonce, or 'unsafe-inline' appears in neither the script-src directive nor the default-src directive of the Content Security Policy. (localhost, line 0, x2)
[Error] Refused to apply a stylesheet because its hash, its nonce, or 'unsafe-inline' appears in neither the style-src directive nor the default-src directive of the Content Security Policy. (localhost, line 1, x2)

I'm running all up to date versions of osx, safari and freshly installed dbus and npm packages.

Hope that helps... :/

Edit : My bad, with a second teminal open, and a "npm run electron", it works like a charm !

from nuclear.

nukeop avatar nukeop commented on July 17, 2024

Don't run it in safari, it won't work because it needs the electron APIs. You should run npm run watch in one terminal window or tab, and npm run electron in another. This way "watch" runs a server with the website, and "electron" runs an electron window that loads the website. Also, dbus won't work on Mac, that's why it's an optional dependency.

from nuclear.

grogcw avatar grogcw commented on July 17, 2024

Yeah, I remembered this, hence the edit at the bottom :)

Not to be picky but errors while it's functionnal remains at "npm run watch", but now, I can use electron for any debug purposes if you want !

Thanks for taking care !

from nuclear.

nukeop avatar nukeop commented on July 17, 2024

Thanks, feel free to open new issues if you run into any further bugs.

from nuclear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.