Closed tylerchilds closed 3 years ago
Full debug output:
tychi@xps-9360:~/SourceCode/p2p-git-portal-poc$ NODE_DEBUG=child_process yarn build
yarn run v1.22.5
$ webpack
CHILD_PROCESS 107016: spawn {
cwd: '/home/tychi/SourceCode/p2p-git-portal-poc',
env: {
NODE: '/home/tychi/.nvm/versions/node/v15.0.1/bin/node',
INIT_CWD: '/home/tychi/SourceCode/p2p-git-portal-poc',
LESSOPEN: '| /usr/bin/lesspipe %s',
KDE_FULL_SESSION: 'true',
TMUX: '/tmp//tmux-1000/default,3003,0',
USER: 'tychi',
PAM_KWALLET5_LOGIN: '/run/user/1000/kwallet5.socket',
XDG_SEAT: 'seat0',
SSH_AGENT_PID: '1358',
XDG_SESSION_TYPE: 'x11',
SHLVL: '2',
HOME: '/home/tychi',
OLDPWD: '/home/tychi/SourceCode/solidpod',
NODE_DEBUG: 'child_process',
DESKTOP_SESSION: 'plasma',
NVM_BIN: '/home/tychi/.nvm/versions/node/v15.0.1/bin',
NVM_INC: '/home/tychi/.nvm/versions/node/v15.0.1/include/node',
XDG_SEAT_PATH: '/org/freedesktop/DisplayManager/Seat0',
KDE_SESSION_VERSION: '5',
GOROOT: '/usr/local/go',
DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
COLORTERM: 'truecolor',
NVM_DIR: '/home/tychi/.nvm',
LOGNAME: 'tychi',
WINDOWID: '75497486',
QT_AUTO_SCREEN_SCALE_FACTOR: '0',
_: '/usr/bin/yarn',
XDG_SESSION_CLASS: 'user',
TERM: 'screen-256color',
XDG_SESSION_ID: '3',
PATH: '/tmp/yarn--1605893658656-0.6548285730875267:/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/.bin:/home/tychi/.config/yarn/link/node_modules/.bin:/home/tychi/.yarn/bin:/home/tychi/.nvm/versions/node/v15.0.1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/lib/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/bin/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/opt/yarn-[version]/bin',
SESSION_MANAGER: 'local/xps-9360:@/tmp/.ICE-unix/1432,unix/xps-9360:/tmp/.ICE-unix/1432',
XDG_SESSION_PATH: '/org/freedesktop/DisplayManager/Session1',
XDG_RUNTIME_DIR: '/run/user/1000',
XCURSOR_THEME: 'breeze_cursors',
DISPLAY: ':0',
DESKTOP_STARTUP_ID: 'xps-9360;1604863468;767813;1458_TIME126268',
LANG: 'en_US.UTF-8',
XDG_CURRENT_DESKTOP: 'KDE',
XDG_SESSION_DESKTOP: 'KDE',
XAUTHORITY: '/home/tychi/.Xauthority',
LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:',
SSH_AUTH_SOCK: '/tmp/ssh-6UZMfiG4MPOb/agent.1308',
SHELL: '/bin/bash',
GOPATH: '/usr/local/go',
QT_ACCESSIBILITY: '1',
KITTY_WINDOW_ID: '1',
LESSCLOSE: '/usr/bin/lesspipe %s %s',
GPG_AGENT_INFO: '/run/user/1000/gnupg/S.gpg-agent:0:1',
XDG_VTNR: '1',
PWD: '/home/tychi/SourceCode/p2p-git-portal-poc',
XDG_CONFIG_DIRS: '/etc/xdg/xdg-plasma:/etc/xdg',
NVM_CD_FLAGS: '',
XDG_DATA_DIRS: '/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop',
TMUX_PLUGIN_MANAGER_PATH: '/home/tychi/.tmux/plugins/',
KDE_SESSION_UID: '1000',
TMUX_PANE: '%7',
YARN_WRAP_OUTPUT: 'false',
npm_lifecycle_event: 'build',
npm_node_execpath: '/home/tychi/.nvm/versions/node/v15.0.1/bin/node',
npm_execpath: '/usr/share/yarn/bin/yarn.js',
npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}',
npm_lifecycle_script: 'webpack',
npm_package_readmeFilename: 'README.md',
npm_package_keywords_2: 'wasm',
npm_package_keywords_1: 'golang',
npm_package_keywords_0: 'svelte',
npm_package_scripts_dev: 'webpack-dev-server --content-base public',
npm_package_scripts_build: 'webpack',
npm_package_devDependencies_webpack_dev_server: '^3.11.0',
npm_package_devDependencies_webpack_cli: '^3.2.1',
npm_package_devDependencies_webpack: '^4.29.0',
npm_package_devDependencies_svelte_loader: '^2.13.6',
npm_package_devDependencies_style_loader: '^0.23.1',
npm_package_devDependencies_source_map_loader: '^0.2.4',
npm_package_devDependencies_mini_css_extract_plugin: '^1.2.1',
npm_package_devDependencies_html_webpack_plugin: '^3.2.0',
npm_package_devDependencies_css_loader: '^2.1.0',
npm_package_dependencies_svelte: '^3.29.4',
npm_package_dependencies_golang_wasm_async_loader2: '^1.0.0',
npm_package_author_name: 'happybeing',
npm_package_license: 'GPL-3.0-or-later',
npm_package_description: 'Proof of concept Golang wasm app',
npm_package_version: '1.0.0',
npm_package_name: 'svelte-go-poc',
npm_config_version_tag_prefix: 'v',
npm_config_version_git_tag: 'true',
npm_config_version_commit_hooks: 'true',
npm_config_version_git_sign: '',
npm_config_version_git_message: 'v%s',
npm_config_init_version: '1.0.0',
npm_config_init_license: 'MIT',
npm_config_save_prefix: '^',
npm_config_bin_links: 'true',
npm_config_ignore_scripts: '',
npm_config_ignore_optional: '',
npm_config_registry: 'https://registry.yarnpkg.com',
npm_config_strict_ssl: 'true',
npm_config_user_agent: 'yarn/1.22.5 npm/? node/v15.0.1 linux x64'
},
stdio: 'inherit',
detached: false,
shell: true,
args: [ '/bin/sh', '-c', 'webpack' ],
envPairs: [
'NODE=/home/tychi/.nvm/versions/node/v15.0.1/bin/node',
'INIT_CWD=/home/tychi/SourceCode/p2p-git-portal-poc',
'LESSOPEN=| /usr/bin/lesspipe %s',
'KDE_FULL_SESSION=true',
'TMUX=/tmp//tmux-1000/default,3003,0',
'USER=tychi',
'PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket',
'XDG_SEAT=seat0',
'SSH_AGENT_PID=1358',
'XDG_SESSION_TYPE=x11',
'SHLVL=2',
'HOME=/home/tychi',
'OLDPWD=/home/tychi/SourceCode/solidpod',
'NODE_DEBUG=child_process',
'DESKTOP_SESSION=plasma',
'NVM_BIN=/home/tychi/.nvm/versions/node/v15.0.1/bin',
'NVM_INC=/home/tychi/.nvm/versions/node/v15.0.1/include/node',
'XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0',
'KDE_SESSION_VERSION=5',
'GOROOT=/usr/local/go',
'DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus',
'COLORTERM=truecolor',
'NVM_DIR=/home/tychi/.nvm',
'LOGNAME=tychi',
'WINDOWID=75497486',
'QT_AUTO_SCREEN_SCALE_FACTOR=0',
'_=/usr/bin/yarn',
'XDG_SESSION_CLASS=user',
'TERM=screen-256color',
'XDG_SESSION_ID=3',
'PATH=/tmp/yarn--1605893658656-0.6548285730875267:/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/.bin:/home/tychi/.config/yarn/link/node_modules/.bin:/home/tychi/.yarn/bin:/home/tychi/.nvm/versions/node/v15.0.1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/lib/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/bin/node_modules/npm/bin/node-gyp-bin:/home/tychi/.nvm/versions/node/v15.0.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/opt/yarn-[version]/bin',
'SESSION_MANAGER=local/xps-9360:@/tmp/.ICE-unix/1432,unix/xps-9360:/tmp/.ICE-unix/1432',
'XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1',
'XDG_RUNTIME_DIR=/run/user/1000',
'XCURSOR_THEME=breeze_cursors',
'DISPLAY=:0',
'DESKTOP_STARTUP_ID=xps-9360;1604863468;767813;1458_TIME126268',
'LANG=en_US.UTF-8',
'XDG_CURRENT_DESKTOP=KDE',
'XDG_SESSION_DESKTOP=KDE',
'XAUTHORITY=/home/tychi/.Xauthority',
'LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:',
'SSH_AUTH_SOCK=/tmp/ssh-6UZMfiG4MPOb/agent.1308',
'SHELL=/bin/bash',
'GOPATH=/usr/local/go',
'QT_ACCESSIBILITY=1',
'KITTY_WINDOW_ID=1',
'LESSCLOSE=/usr/bin/lesspipe %s %s',
'GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1',
'XDG_VTNR=1',
'PWD=/home/tychi/SourceCode/p2p-git-portal-poc',
'XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg',
'NVM_CD_FLAGS=',
'XDG_DATA_DIRS=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop',
'TMUX_PLUGIN_MANAGER_PATH=/home/tychi/.tmux/plugins/',
'KDE_SESSION_UID=1000',
'TMUX_PANE=%7',
'YARN_WRAP_OUTPUT=false',
'npm_lifecycle_event=build',
'npm_node_execpath=/home/tychi/.nvm/versions/node/v15.0.1/bin/node',
'npm_execpath=/usr/share/yarn/bin/yarn.js',
'npm_config_argv={"remain":[],"cooked":["run","build"],"original":["build"]}',
'npm_lifecycle_script=webpack',
'npm_package_readmeFilename=README.md',
'npm_package_keywords_2=wasm',
'npm_package_keywords_1=golang',
'npm_package_keywords_0=svelte',
'npm_package_scripts_dev=webpack-dev-server --content-base public',
'npm_package_scripts_build=webpack',
'npm_package_devDependencies_webpack_dev_server=^3.11.0',
'npm_package_devDependencies_webpack_cli=^3.2.1',
'npm_package_devDependencies_webpack=^4.29.0',
'npm_package_devDependencies_svelte_loader=^2.13.6',
'npm_package_devDependencies_style_loader=^0.23.1',
'npm_package_devDependencies_source_map_loader=^0.2.4',
'npm_package_devDependencies_mini_css_extract_plugin=^1.2.1',
'npm_package_devDependencies_html_webpack_plugin=^3.2.0',
'npm_package_devDependencies_css_loader=^2.1.0',
'npm_package_dependencies_svelte=^3.29.4',
'npm_package_dependencies_golang_wasm_async_loader2=^1.0.0',
'npm_package_author_name=happybeing',
'npm_package_license=GPL-3.0-or-later',
'npm_package_description=Proof of concept Golang wasm app',
'npm_package_version=1.0.0',
'npm_package_name=svelte-go-poc',
'npm_config_version_tag_prefix=v',
'npm_config_version_git_tag=true',
'npm_config_version_commit_hooks=true',
'npm_config_version_git_sign=',
'npm_config_version_git_message=v%s',
'npm_config_init_version=1.0.0',
'npm_config_init_license=MIT',
'npm_config_save_prefix=^',
'npm_config_bin_links=true',
'npm_config_ignore_scripts=',
'npm_config_ignore_optional=',
'npm_config_registry=https://registry.yarnpkg.com',
'npm_config_strict_ssl=true',
'npm_config_user_agent=yarn/1.22.5 npm/? node/v15.0.1 linux x64'
],
file: '/bin/sh',
windowsHide: false,
windowsVerbatimArguments: false
}
CHILD_PROCESS 107038: spawn {
cwd: '/home/mrh/src/wasm/p2p-git-portal-poc/src',
env: {
GO111MODULE: 'on',
GOPATH: '/usr/local/go',
GOROOT: '/usr/local/go',
GOCACHE: '/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/golang-wasm-async-loader2/dist/.gocache',
GOOS: 'js',
GOARCH: 'wasm'
},
gid: undefined,
uid: undefined,
shell: false,
windowsHide: false,
windowsVerbatimArguments: false,
args: [ '/usr/bin/env' ],
detached: false,
envPairs: [
'GO111MODULE=on',
'GOPATH=/usr/local/go',
'GOROOT=/usr/local/go',
'GOCACHE=/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/golang-wasm-async-loader2/dist/.gocache',
'GOOS=js',
'GOARCH=wasm'
],
file: '/usr/bin/env'
}
CHILD_PROCESS 107038: spawn {
cwd: '/home/mrh/src/wasm/p2p-git-portal-poc/src',
env: {
GO111MODULE: 'on',
GOPATH: '/usr/local/go',
GOROOT: '/usr/local/go',
GOCACHE: '/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/golang-wasm-async-loader2/dist/.gocache',
GOOS: 'js',
GOARCH: 'wasm'
},
gid: undefined,
uid: undefined,
shell: false,
windowsHide: false,
windowsVerbatimArguments: false,
args: [
'/usr/local/go/bin/go',
'build',
'-o',
'/home/tychi/SourceCode/p2p-git-portal-poc/src/main.go.wasm',
'/home/tychi/SourceCode/p2p-git-portal-poc/src/main.go'
],
detached: false,
envPairs: [
'GO111MODULE=on',
'GOPATH=/usr/local/go',
'GOROOT=/usr/local/go',
'GOCACHE=/home/tychi/SourceCode/p2p-git-portal-poc/node_modules/golang-wasm-async-loader2/dist/.gocache',
'GOOS=js',
'GOARCH=wasm'
],
file: '/usr/local/go/bin/go'
}
Hash: bfffc960539be14ed33e
Version: webpack 4.44.2
Time: 590ms
Built at: 11/20/2020 9:34:19 AM
Asset Size Chunks Chunk Names
bundle.js 157 KiB bundle [emitted] bundle
bundle.js.map 111 KiB bundle [emitted] [dev] bundle
Entrypoint bundle = bundle.js bundle.js.map
[0] multi ./src/main.js 28 bytes {bundle} [built]
[./node_modules/css-loader/dist/cjs.js!./src/App.svelte.css] 602 bytes {bundle} [built]
[./node_modules/css-loader/dist/cjs.js!./src/RepoDashboardPanel.svelte.css] 182 bytes {bundle} [built]
[./node_modules/css-loader/dist/cjs.js!./src/test/FileUploadPanel.svelte.css] 278 bytes {bundle} [built]
[./src/App.svelte] 15.9 KiB {bundle} [built]
[./src/App.svelte.css] 1.07 KiB {bundle} [built]
[./src/CommitsListingPanel.svelte] 6.95 KiB {bundle} [built] [1 warning]
[./src/RepoDashboardPanel.svelte] 5.58 KiB {bundle} [built]
[./src/RepoDashboardPanel.svelte.css] 1.11 KiB {bundle} [built]
[./src/main.go] 356 bytes {bundle} [built] [failed] [1 error]
[./src/main.js] 151 bytes {bundle} [built]
[./src/test/FileUploadPanel.svelte] 4.84 KiB {bundle} [built]
[./src/test/FileUploadPanel.svelte.css] 1.12 KiB {bundle} [built]
[./src/test/GoGitClonePanel.svelte] 6 KiB {bundle} [built]
+ 5 hidden modules
WARNING in ./src/CommitsListingPanel.svelte
Module Warning (from ./node_modules/svelte-loader/index.js):
Unused CSS selector ".highlight" (45:0)
43:
44: <style>
45: .highlight {
^
46: font-weight: bold;
47: }
@ ./src/App.svelte 30:0-63 219:27-46
@ ./src/main.js
@ multi ./src/main.js
ERROR in ./src/main.go
Module build failed (from ./node_modules/golang-wasm-async-loader2/dist/index.js):
Error: spawn /usr/local/go/bin/go ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:269:19)
at onErrorNT (node:internal/child_process:465:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21)
@ ./src/App.svelte 28:0-29 469:81-85
@ ./src/main.js
@ multi ./src/main.js
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I've fixed a problem in the golang plugin so fingers crossed updating it will fix the problem:
cd p2p-git-portal-poc
git pull
yarn # to update the golang plugin
yarn build
If that works yarn dev
and you should be able to open it in a browser. If not, make sure you have at least v1.0.6 of golang-wasm-async-loader2
.
BTW I'd not published to npmjs before yesterday so am making rookie mistakes!
Perfect, that resolved the issue, thanks!
Following the instructions in the README, I get an error when running
yarn build
. Please let me know if I should include any further details.System:
Ubuntu 20.04 go: 1.15.5 node: 15.0.1 yarn: 1.22.5
Command:
Error: