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

build:web error #222

Open
matamune94 opened this issue Jun 23, 2021 · 1 comment
Open

build:web error #222

matamune94 opened this issue Jun 23, 2021 · 1 comment
Labels
bug Something isn't working installation Issue when trying to install the software

Comments

@matamune94
Copy link

I make more error when build web

null
assets by status 21.2 MiB [cached] 1327 assets
orphan modules 355 KiB [orphan] 192 modules
runtime modules 28.4 KiB 14 modules
cacheable modules 2.21 MiB
  modules by path ./src/renderer/ 708 KiB
    modules by path ./src/renderer/components/*.vue 59.2 KiB 58 modules
    modules by path ./src/renderer/assets/ 288 KiB 11 modules
    modules by path ./src/renderer/*.vue 2.9 KiB 2 modules
    3 modules
  modules by path ./node_modules/ 1.52 MiB
    modules by path ./node_modules/@babel/runtime/ 6.98 KiB 21 modules
    modules by path ./node_modules/chessgroundx/*.js 346 KiB 18 modules
    modules by path ./node_modules/css-loader/dist/runtime/*.js 2.38 KiB 2 modules
    modules by path ./node_modules/vue-multiselect/dist/ 51.3 KiB
      ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-1[0].rules[0].use[1]!./node_modules/vue-multiselect/dist/vue-multiselect.min.css 7.28 KiB [built] [code generated]
      ./node_modules/vue-multiselect/dist/vue-multiselect.min.js 44 KiB [built] [code generated]

WARNING in ./src/renderer/engine/index.js 41:27-39
export 'default' (imported as 'EngineWorker') was not found in './engine.worker.js' (possible exports: )
 @ ./src/renderer/store.js
 @ ./src/renderer/main.js 4:0-32 13:9-14

WARNING in ./src/renderer/engine/index.js 102:27-39
export 'default' (imported as 'EngineWorker') was not found in './engine.worker.js' (possible exports: )
 @ ./src/renderer/store.js
 @ ./src/renderer/main.js 4:0-32 13:9-14

WARNING in ./node_modules/ffish/ffish.js 1:18682-18699
Module not found: Error: Can't resolve 'crypto' in 'G:\sites\liground-0.2.0\liground-0.2.0\node_modules\ffish'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }
 @ ./src/renderer/store.js 20:0-26 376:28-39 378:28-39 383:28-39 385:28-39 700:10-27 1469:0-26
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/components/EngineModal.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/EngineModal.vue?vue&type=script&lang=js&) 4:0-24
Module not found: Error: Can't resolve 'path' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\components'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
 @ ./src/renderer/components/EngineModal.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/EngineModal.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/SettingsTab.vue?vue&type=script&lang=js& 16:0-40 23:17-28
 @ ./src/renderer/components/SettingsTab.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/SettingsTab.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/GameBoards.vue?vue&type=script&lang=js& 9:0-40 21:17-28
 @ ./src/renderer/components/GameBoards.vue?vue&type=script&lang=js& 1:0-176 1:192-195 1:197-370 1:197-370
 @ ./src/renderer/components/GameBoards.vue 2:0-62 3:0-57 3:0-57 11:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-38 7:16-26
 @ ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/LandingPage.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./src/renderer/router/index.js
 @ ./src/renderer/main.js 3:0-30 12:10-16

ERROR in ./src/renderer/components/EngineModal.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/EngineModal.vue?vue&type=script&lang=js&) 5:0-36
Module not found: Error: Can't resolve 'fs' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\components'
 @ ./src/renderer/components/EngineModal.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/EngineModal.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/SettingsTab.vue?vue&type=script&lang=js& 16:0-40 23:17-28
 @ ./src/renderer/components/SettingsTab.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/SettingsTab.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/GameBoards.vue?vue&type=script&lang=js& 9:0-40 21:17-28
 @ ./src/renderer/components/GameBoards.vue?vue&type=script&lang=js& 1:0-176 1:192-195 1:197-370 1:197-370
 @ ./src/renderer/components/GameBoards.vue 2:0-62 3:0-57 3:0-57 11:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-38 7:16-26
 @ ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/LandingPage.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./src/renderer/router/index.js
 @ ./src/renderer/main.js 3:0-30 12:10-16

ERROR in ./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/MenuBar.vue?vue&type=script&lang=js&) 7:0-20
Module not found: Error: Can't resolve 'fs' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\components'
 @ ./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& 1:0-173 1:189-192 1:194-364 1:194-364
 @ ./src/renderer/components/MenuBar.vue 2:0-59 3:0-54 3:0-54 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 2:0-36 6:13-20
 @ ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/LandingPage.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./src/renderer/router/index.js
 @ ./src/renderer/main.js 3:0-30 12:10-16

ERROR in ./src/renderer/engine/driver.js 14:0-32
Module not found: Error: Can't resolve 'readline' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\engine'
 @ ./src/renderer/engine/engine.worker.js 12:0-36 72:25-37
 @ ./src/renderer/engine/index.js 20:0-46 41:27-39 102:27-39
 @ ./src/renderer/store.js
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/engine/engine.worker.js 10:0-20
Module not found: Error: Can't resolve 'fs' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\engine'
 @ ./src/renderer/engine/index.js 20:0-46 41:27-39 102:27-39
 @ ./src/renderer/store.js
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/engine/engine.worker.js 11:0-38
Module not found: Error: Can't resolve 'child_process' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\engine'
 @ ./src/renderer/engine/index.js 20:0-46 41:27-39 102:27-39
 @ ./src/renderer/store.js
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/store/engines.js 1:0-24
Module not found: Error: Can't resolve 'path' in 'G:\sites\liground-0.2.0\liground-0.2.0\src\renderer\store'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
 @ ./src/renderer/store.js 22:0-41 172:16-26
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./node_modules/electron/index.js 1:9-22
Module not found: Error: Can't resolve 'fs' in 'G:\sites\liground-0.2.0\liground-0.2.0\node_modules\electron'
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& 8:0-33 28:6-24
 @ ./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& 1:0-173 1:189-192 1:194-364 1:194-364
 @ ./src/renderer/components/MenuBar.vue 2:0-59 3:0-54 3:0-54 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 2:0-36 6:13-20
 @ ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/LandingPage.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./src/renderer/router/index.js
 @ ./src/renderer/main.js 3:0-30 12:10-16

ERROR in ./node_modules/electron/index.js 2:11-26
Module not found: Error: Can't resolve 'path' in 'G:\sites\liground-0.2.0\liground-0.2.0\node_modules\electron'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& 8:0-33 28:6-24
 @ ./src/renderer/components/MenuBar.vue?vue&type=script&lang=js& 1:0-173 1:189-192 1:194-364 1:194-364
 @ ./src/renderer/components/MenuBar.vue 2:0-59 3:0-54 3:0-54 10:2-8
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 2:0-36 6:13-20
 @ ./src/renderer/components/LandingPage.vue?vue&type=script&lang=js& 1:0-177 1:193-196 1:198-372 1:198-372
 @ ./src/renderer/components/LandingPage.vue 2:0-63 3:0-58 3:0-58 10:2-8
 @ ./src/renderer/router/index.js
 @ ./src/renderer/main.js 3:0-30 12:10-16

ERROR in ./node_modules/ffish/ffish.js 1:985-1008
Module not found: Error: Can't resolve 'path' in 'G:\sites\liground-0.2.0\liground-0.2.0\node_modules\ffish'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
        - install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "path": false }
 @ ./src/renderer/store.js 20:0-26 376:28-39 378:28-39 383:28-39 385:28-39 700:10-27 1469:0-26
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./node_modules/ffish/ffish.js 1:1126-1139
Module not found: Error: Can't resolve 'fs' in 'G:\sites\liground-0.2.0\liground-0.2.0\node_modules\ffish'
 @ ./src/renderer/store.js 20:0-26 376:28-39 378:28-39 383:28-39 385:28-39 700:10-27 1469:0-26
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/assets/audio/Capture.mp3 1:3
Module parse failed: Unexpected character '♦' (1:3)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
 @ ./src/renderer/store.js 24:0-54 483:25-37
 @ ./src/renderer/main.js 4:0-32 13:9-14

ERROR in ./src/renderer/assets/audio/Move.mp3 1:3
Module parse failed: Unexpected character '♦' (1:3)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
 @ ./src/renderer/store.js 23:0-48 480:27-36
 @ ./src/renderer/main.js 4:0-32 13:9-14

webpack 5.17.0 compiled with 13 errors and 3 warnings in 49208 ms

can help ?

@QueensGambit
Copy link
Collaborator

Hello @matamune94 ,

sorry to hear that.
Please let me know if the fix of adding target: 'node as suggested in

const webpackConfig = {
  target: 'node'
};
module.exports = webpackConfig;

resolves your problem.

@QueensGambit QueensGambit added bug Something isn't working installation Issue when trying to install the software labels Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working installation Issue when trying to install the software
Projects
None yet
Development

No branches or pull requests

2 participants