Closed Gabrielvon closed 6 years ago
+1 Same error
hi, any updates?
i don't own a mac, and from this report don't have the slightlest idea of what could be happening, can you launch other electron apps ?
did you run yarn build
?
Sorry that I don't have prior knowledge about yarn, npm, electron and the like. This could be the first time for me to use yarn and electron. Could you tell me what further information do you need? I don't know how to test if I can launch other electron apps. Maybe you can tell me any one of electron app so I can install and try.
I forgot that if I run yarn build
before. However, I just ran it and it returns some error as the followings.
gabrielfeng@gwfarena ~/butter-desktop devel yarn build
yarn run v1.9.4
$ webpack --progress --config webpack.config.js
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-base-components
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-builder
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-content-details
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-list
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-menu
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-modal
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-settings
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-component-video
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-stream-selector
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-stream-server
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-streamer
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-http
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-torrent
looking at /Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-youtube
paths [ '/Users/gabrielfeng/butter-desktop/node_modules/butter-base-components',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-builder',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-content-details',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-list',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-menu',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-modal',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-settings',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-component-video',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-stream-selector',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-stream-server',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-streamer',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-http',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-torrent',
'/Users/gabrielfeng/butter-desktop/node_modules/butter-streamer-youtube' ]
Hash: 643a735498516f8ed561
Version: webpack 4.16.5
Time: 13366ms
Built at: 09/01/2018 1:27:40 PM
10 assets
Entrypoint themes = themes.js themes.css themes.js.map themes.css.map
Entrypoint index = index.js index.css index.js.map index.css.map
[+5Ed] (webpack)-md-icons/index.js 51 bytes {0} [built]
[/MKj] ./node_modules/react-redux/es/index.js + 24 modules 43.2 KiB {1} [built]
| 25 modules
[42FX] ./src/containers/settings.js 1.89 KiB {1} [built]
[4S0+] ./src/containers/player.js 3.57 KiB {1} [built]
[5c+Z] ./electron/i18n.js 625 bytes {1} [built]
[Al62] ./src/utils.js 5.45 KiB {1} [built]
[HWry] ./src/containers/listview.js 3.8 KiB {1} [built]
[0] multi webpack-md-icons butter-theme-base 40 bytes {0} [built]
[Hlez] ./src/containers/details.js 2.14 KiB {1} [built]
[PWTp] ./electron/index.js 946 bytes {1} [built]
[eO8H] ./node_modules/react-router-dom/es/index.js + 34 modules 80.3 KiB {1} [built]
| 35 modules
[g9Z0] ./src/settings.js 926 bytes {1} [built]
[jKim] ./node_modules/i18next/dist/es/index.js + 12 modules 72.2 KiB {1} [built]
| 13 modules
[tjUo] ./src/index.js 2.61 KiB {1} [built]
[wNa6] ./src/store.js 7.22 KiB {1} [built]
+ 495 hidden modules
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 214:42-49
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/cson-parser/lib/parse.js
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 218:26-33
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/cson-parser/lib/parse.js
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/i18next-node-fs-backend/lib/index.js 57:17-34
Critical dependency: the request of a dependency is an expression
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 169:50-68
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson-parser/lib/parse.js 36:12-35
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 246:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson-parser/lib/parse.js 36:12-35
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 250:21-39
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/cson-parser/lib/parse.js 36:12-35
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/register.js 19:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 243:11-32
@ ./node_modules/cson-parser/lib/parse.js
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
WARNING in ./node_modules/coffeescript/lib/coffee-script/register.js 23:6-24
require.extensions is not supported by webpack. Use a loader instead.
@ ./node_modules/coffeescript/lib/coffee-script/coffee-script.js 243:11-32
@ ./node_modules/cson-parser/lib/parse.js
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
ERROR in ./node_modules/coffeescript/bin/coffee 1:0
Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> #!/usr/bin/env node
|
| var path = require('path');
@ ./node_modules/coffeescript/lib/coffee-script/register.js 52:13-48
@ ./node_modules/coffeescript/lib/coffee-script/coffee-script.js
@ ./node_modules/cson-parser/lib/parse.js
@ ./node_modules/cson-parser/lib/cson-parser.js
@ ./node_modules/i18next-node-fs-backend/lib/index.js
@ ./node_modules/i18next-node-fs-backend/index.js
@ ./electron/i18n.js
@ ./electron/index.js
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/alert/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/button/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/dropdown/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/navbar/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/search/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/stars/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/switch/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/title-bar/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
5 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/toolbar/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/view/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-base-components/src/components/window/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/components/info/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/components/navbar/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/components/playbuttons/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/components/seasonselector/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/components/synopsis/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-content-details/src/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-list/src/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-menu/src/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-modal/src/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-settings/src/components/row/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-settings/src/components/tabs/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-settings/src/styl/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-video/src/components/overlay/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-video/src/components/volume/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!node_modules/butter-component-video/src/style.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?modules&sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/stylus-loader/index.js??ref--8-3!src/components/listview.styl:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/butter-component-video/src/style.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/butter-theme-base/index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/react-html5video/dist/styles.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/typeface-dosis/index.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
17 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!node_modules/webpack-md-icons/material-icons.css:
2 assets
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[/Utp] (webpack)-md-icons/fonts/MaterialIcons-Regular.woff 75.1 KiB {0} [built]
[/xiq] ./node_modules/css-loader?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!(webpack)-md-icons/material-icons.css 1020 bytes {0} [built]
[S/VX] (webpack)-md-icons/fonts/MaterialIcons-Regular.ttf 82 bytes {0} [built]
[l1qM] (webpack)-md-icons/fonts/MaterialIcons-Regular.eot 82 bytes {0} [built]
[lSIn] (webpack)-md-icons/fonts/MaterialIcons-Regular.woff2 57.7 KiB {0} [built]
+ 2 hidden modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!src/style.css:
Entrypoint undefined = extract-text-webpack-plugin-output-filename
[2W5h] ./node_modules/css-loader?sourceMaps&minimize&localIdentName=[name]--[hash:base64:5]!./src/style.css 400 bytes {0} [built]
+ 1 hidden module
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
this is a problem with i18n, can you try to disable it in electron/i18n.js
?
sorry for the delay. I found the filein electron/i18n.js
but don't know how to disable it. Could you give me some guidance?
I tried simply commenting all lines but the problem still exists.
Got same error, how to disable the i18n ??
adding the following rule to config.module.rules
fixes the issue for me.
{
test: /node_modules\/coffeescript\/bin\/coffee$/,
loaders: ['shebang-loader', 'babel-loader']
}
yarn add shebang-loader
./node_modules/butter-component-builder/webpack/webpack.config.js
yarn build
I hope this helps!
hi, @drsh0x .
When I run yarn add shebang-loader
, it returns error saying ERROR: add is not COMMAND nor fully qualified CLASSNAME.
. Could you tell me how to run it correctly? Thef following is my yarn version.
@Gabrielvon looks like hadoop YARN is taking precedence over yarn the package manager in your path
this should fix it export PATH=$(npm bin -g):$PATH
same error
just pushed @drsh0x 's suggested fix (thanks !) to butter-component-builder,
try with a clean checkout it should remove the issue.
@drsh0x right, I found that it was because of something wrong in my environment and now this was fixed. Thank.
I did the following which works for me after @xaiki pushed the suggestion.
git clean -df
git fetch
yarn
yarn build
yarn start
The interface finally shows up but I got another issues and don't know if it is about internet connection or something else. Please help.
It ran without interface and occupied the terminal.
I also did
yarn start -titlebarAppearsTransparent=YES
but nothing change.About my machine
macOS HighSierra 10.13.6 yarn 1.9.4
Let me know what further information is needed. Thanks.