fSpy
fSpy copied to clipboard
Can't build, can't run
Hello, I tried to run fSpy from code but I was unsuccessful.
Here's the output of yarn dev-server after fixing the digital envelope routines::unsupported error:
$ set NODE_OPTIONS=--openssl-legacy-provider && webpack-dev-server config webpack.config.js --content-base build/ --mode development
(node:49968) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
i 「wds」: Project is running at http://localhost:8080/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\path\fSpy\build
[BABEL] Note: The code generator has deoptimised the styling of "C:/path/fSpy/node_modules/lodash/lodash.js" as it exceeds the max of "500KB".[BABEL] Note: The code generator has deoptimised the styling of "C:/path/node_modules/lodash/lodash.js" as it exceeds the max of "500KB".× 「wdm」: Hash: 7b1f7c157587e04da09b7f0795d4d52bf6582061
Version: webpack 4.10.2
Child
Hash: 7b1f7c157587e04da09b
Time: 30711ms
Built at: 08/09/2023 14:31:20
Asset Size Chunks Chunk Names
main.js 4.34 MiB main [emitted] main
Entrypoint main = main.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js 52 bytes {main} [built]
[./node_modules/ansi-html/index.js] 4.24 KiB {main} [built]
[./node_modules/ansi-regex/index.js] 139 bytes {main} [built]
[./node_modules/html-entities/index.js] 245 bytes {main} [built]
[./node_modules/html-webpack-plugin/index.js] 25.1 KiB {main} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.74 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 7.75 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.58 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {main} [built]
[./node_modules/webpack-dev-server/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 89 bytes {main} [built]
[./webpack.config.js] 1.23 KiB {main} [built]
[path] external "path" 42 bytes {main} [built]
[url] external "url" 42 bytes {main} [built]
+ 762 hidden modules
WARNING in ./node_modules/html-webpack-plugin/index.js
229:86-93 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
WARNING in ./node_modules/uglify-js/tools/node.js
7:11-32 Critical dependency: the request of a dependency is an expression
@ ./node_modules/uglify-js/tools/node.js
@ ./node_modules/html-minifier/src/htmlminifier.js
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
WARNING in ./node_modules/chokidar/lib/fsevents-handler.js
Module not found: Error: Can't resolve 'fsevents' in 'C:\path\fSpy\node_modules\chokidar\lib'
@ ./node_modules/chokidar/lib/fsevents-handler.js 8:13-32
@ ./node_modules/chokidar/index.js
@ ./node_modules/watchpack/lib/DirectoryWatcher.js
@ ./node_modules/watchpack/lib/watcherManager.js
@ ./node_modules/watchpack/lib/watchpack.js
@ (webpack)/lib/node/NodeWatchFileSystem.js
@ (webpack)/lib/node sync ^\.\/.*$
@ (webpack)/lib/node/NodeMainTemplate.runtime.js
@ (webpack)/lib/node/NodeMainTemplatePlugin.js
@ (webpack)/lib/node/NodeTemplatePlugin.js
@ ./node_modules/html-webpack-plugin/lib/compiler.js
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
Module not found: Error: Can't resolve 'config' in 'C:\path\fSpy'
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
Child
Hash: 7f0795d4d52bf6582061
Time: 30179ms
Built at: 08/09/2023 14:31:20
Asset Size Chunks Chunk Names
main.js 4.29 MiB main [emitted] main
index.html 206 bytes [emitted]
Entrypoint main = main.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js 52 bytes {main} [built]
[./node_modules/ansi-html/index.js] 4.24 KiB {main} [built]
[./node_modules/ansi-regex/index.js] 139 bytes {main} [built]
[./node_modules/html-entities/index.js] 245 bytes {main} [built]
[./node_modules/html-webpack-plugin/index.js] 25.1 KiB {main} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.74 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 7.75 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.58 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {main} [built]
[./node_modules/webpack-dev-server/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 89 bytes {main} [built]
[./webpack.config.js] 1.23 KiB {main} [built]
[path] external "path" 42 bytes {main} [built]
[url] external "url" 42 bytes {main} [built]
+ 796 hidden modules
WARNING in ./node_modules/html-webpack-plugin/index.js
229:86-93 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
WARNING in ./node_modules/uglify-js/tools/node.js
7:11-32 Critical dependency: the request of a dependency is an expression
@ ./node_modules/uglify-js/tools/node.js
@ ./node_modules/html-minifier/src/htmlminifier.js
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
WARNING in ./node_modules/chokidar/lib/fsevents-handler.js
Module not found: Error: Can't resolve 'fsevents' in 'C:\path\fSpy\node_modules\chokidar\lib'
@ ./node_modules/chokidar/lib/fsevents-handler.js 8:13-32
@ ./node_modules/chokidar/index.js
@ ./node_modules/watchpack/lib/DirectoryWatcher.js
@ ./node_modules/watchpack/lib/watcherManager.js
@ ./node_modules/watchpack/lib/watchpack.js
@ (webpack)/lib/node/NodeWatchFileSystem.js
@ (webpack)/lib/node sync ^\.\/.*$
@ (webpack)/lib/node/NodeMainTemplate.runtime.js
@ (webpack)/lib/node/NodeMainTemplatePlugin.js
@ (webpack)/lib/node/NodeTemplatePlugin.js
@ ./node_modules/html-webpack-plugin/lib/compiler.js
@ ./node_modules/html-webpack-plugin/index.js
@ ./webpack.config.js
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
ERROR in multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
Module not found: Error: Can't resolve 'config' in 'C:\path\fSpy'
@ multi (webpack)-dev-server/client?http://localhost:8080 config ./webpack.config.js
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./src/gui/index.html] 367 bytes {0} [built]
[./node_modules/lodash/lodash.js] 527 KiB {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 515 bytes {0} [built]
i 「wdm」: Failed to compile.
What should I do to be able to compile and run fSpy?