Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Yarn to build failed #715

Open
YinshenYuan opened this issue Jan 8, 2019 · 0 comments
Open

Using Yarn to build failed #715

YinshenYuan opened this issue Jan 8, 2019 · 0 comments

Comments

@YinshenYuan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant