etoa / etoa-gui

EtoA Game GUI
https://etoa.ch
GNU Affero General Public License v3.0
10 stars 7 forks source link

current build errors: yarn and encore #500

Open river-etoa opened 2 years ago

river-etoa commented 2 years ago

provision file after cd /vagrant && yarn install --frozen-lockfile

    default: yarn install v1.22.18
    default: [1/4] Resolving packages...
    default: [2/4] Fetching packages...
    default: [3/4] Linking dependencies...
    default: warning "laravel-mix > cssnano@5.1.3" has unmet peer dependency "postcss@^8.2.15".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "@babel/core@^7.15.8".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "@babel/plugin-proposal-object-rest-spread@^7.15.6".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "@babel/plugin-syntax-dynamic-import@^7.8.3".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "@babel/plugin-transform-runtime@^7.15.8".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "@babel/preset-env@^7.15.8".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "postcss@^8.3.11".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "webpack@^5.60.0".
    default: warning " > laravel-mix@6.0.43" has unmet peer dependency "webpack-cli@^4.9.1".
    default: warning "laravel-mix > autoprefixer@10.4.2" has unmet peer dependency "postcss@^8.1.0".
    default: warning "laravel-mix > postcss-loader@6.2.1" has unmet peer dependency "postcss@^7.0.0 || ^8.0.1".
    default: warning " > sass-loader@12.6.0" has unmet peer dependency "webpack@^5.0.0".
    default: warning Workspaces can only be enabled in private projects.
    default: error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../parser/bin/babel-parser.js' -> '/vagrant/node_modules/@babel/core/node_modules/.bin/parser'".
    default: info If you think this is a bug, please open a bug report with the information provided in "/vagrant/yarn-error.log".
    default: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
    default: yarn run v1.22.18
    default: $ encore production
    default: /bin/sh: 1: encore: not found
    default: error Command failed with exit code 127.
    default: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
river-etoa commented 2 years ago

tried some fixes in https://github.com/etoa/etoa-gui/pull/501 the script works when run locally. doesn't work thru vagrant, due to the symlink issue default: error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../parser/bin/babel-parser.js' -> '/vagrant/node_modules/@babel/core/node_modules/.bin/parser'". the warnings above that seem to not cause immediatly-visible issues.

coo1ness commented 7 months ago

The symlink issue seemed to be caused by a windows security policy. Running on UNIX-based OS didn't throw any error.

Fixing it on code level failed but there's a workaround: