butterproject / butter-desktop

All the free parts of Popcorn Time

Home Page:http://butterproject.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Yarn to build failed

YinshenYuan opened this issue · comments

After using "git clone" and "yarn" command, I tried to "yarn build", but failed.
I'm currently using win7, node 8.15.0, npm 6.5.0 and yarn 1.12.3.
The warnings and errors are shown below, any help?

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

ERROR in ./src/index.js 25:12
Module parse failed: Unexpected token (25:12)
You may need an appropriate loader to handle this file type.
| const firstTab = Object.keys(Settings.tabs)[0]
| return (

        <Router>

| <Window title={} actions={windowActions}>
|
@ ./electron/index.js 7:0-28 9:27-33
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/typefac
e-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
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.